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
No related merge requests found
......@@ -1995,7 +1995,7 @@ function _drupal_build_css_path($matches, $base = NULL) {
$last = '';
while ($path != $last) {
$last = $path;
$path = preg_replace('`(^|/)(?!../)([^/]+)/../`', '$1', $path);
$path = preg_replace('`(^|/)(?!\.\./)([^/]+)/\.\./`', '$1', $path);
}
return 'url(' . $path . ')';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment