Skip to content
Snippets Groups Projects
Commit b3b68b8b authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #255293 by Gribnif, maartenvg: incorrect regex causes some aggregated CSS to fail.

parent d2331ebd
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1995,7 +1995,7 @@ function _drupal_build_css_path($matches, $base = NULL) { ...@@ -1995,7 +1995,7 @@ function _drupal_build_css_path($matches, $base = NULL) {
$last = ''; $last = '';
while ($path != $last) { while ($path != $last) {
$last = $path; $last = $path;
$path = preg_replace('`(^|/)(?!../)([^/]+)/../`', '$1', $path); $path = preg_replace('`(^|/)(?!\.\./)([^/]+)/\.\./`', '$1', $path);
} }
return 'url(' . $path . ')'; return 'url(' . $path . ')';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment