From 083125258cf734f119316b8c0330f927ed28a3f5 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Mon, 10 Jan 2011 21:31:12 +0000 Subject: [PATCH] Resolves bug #26655 - adds support for space before and after the URL inside the parenthesis of a url() statement in CSS. --- 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 b6dad93e53..5ed65c3750 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -36,7 +36,7 @@ class CSSMin { * which when base64 encoded will result in a 1/3 increase in size. */ const EMBED_SIZE_LIMIT = 24576; - const URL_REGEX = 'url\([\'"]?(?P[^\?\)\:\'"]*)\??[^\)\'"]*[\'"]?\)'; + const URL_REGEX = 'url\(\s*[\'"]?(?P[^\?\)\:\'"]*)\??[^\)\'"]*[\'"]?\s*\)'; /* Protected Static Members */ -- 2.20.1