Commit b3b68b8b authored by Dries's avatar Dries
Browse files

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

parent d2331ebd
......@@ -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 . ')';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment