From: Trevor Parscal Date: Mon, 10 Jan 2011 21:31:12 +0000 (+0000) Subject: Resolves bug #26655 - adds support for space before and after the URL inside the... X-Git-Tag: 1.31.0-rc.0~32641 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=083125258cf734f119316b8c0330f927ed28a3f5;p=lhc%2Fweb%2Fwiklou.git Resolves bug #26655 - adds support for space before and after the URL inside the parenthesis of a url() statement in CSS. --- 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 */