diff --git a/core/modules/color/color.module b/core/modules/color/color.module index dc8be4a..9d5c51d 100644 --- a/core/modules/color/color.module +++ b/core/modules/color/color.module @@ -469,10 +469,12 @@ function _color_rewrite_stylesheet($theme, &$info, &$paths, $palette, $style) { $output .= $fixed; } - // Replace paths to images. + // Replace paths to images. Allow inheritance from base theme. foreach ($paths['map'] as $before => $after) { $before = base_path() . $paths['source'] . $before; - $before = preg_replace('`(^|/)(?!../)([^/]+)/../`', '$1', $before); + while (preg_match('`(^|/)\.\./`', $before) { + $before = preg_replace('`(^|/)(?!\.\./)([^/]+)/\.\./`', '$1', $before); + } $output = str_replace($before, $after, $output); }