From 546378e5ab4c0a920b539f5e650dbeb9e8b5a5ec Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Thu, 9 Sep 2010 21:41:05 +0000 Subject: [PATCH] Fixes issues with complex background rules containing extra information after the URL, while using quotes within the url. --- includes/libs/CSSMin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index 15dfa06e41..bfe179f453 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -82,7 +82,7 @@ class CSSMin { * @return string Remapped CSS data */ public static function remap( $source, $path, $embed = true ) { - $pattern = '/((?\s*\/\*\s*\@embed\s*\*\/)(?[^\;\}]*))?url\([\'"]?(?[^\?\)\:]*)\??[^\)]*[\'"]?\)(?[^;]*)[\;]?/'; + $pattern = '/((?\s*\/\*\s*\@embed\s*\*\/)(?[^\;\}]*))?url\([\'"]?(?[^\?\)\:\'"]*)\??[^\)\'"]*[\'"]?\)(?[^;]*)[\;]?/'; $offset = 0; while ( preg_match( $pattern, $source, $match, PREG_OFFSET_CAPTURE, $offset ) ) { // Shortcuts -- 2.20.1