Resolves bug #26655 - adds support for space before and after the URL inside the...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 10 Jan 2011 21:31:12 +0000 (21:31 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 10 Jan 2011 21:31:12 +0000 (21:31 +0000)
includes/libs/CSSMin.php

index b6dad93..5ed65c3 100644 (file)
@@ -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<file>[^\?\)\:\'"]*)\??[^\)\'"]*[\'"]?\)';
+       const URL_REGEX = 'url\(\s*[\'"]?(?P<file>[^\?\)\:\'"]*)\??[^\)\'"]*[\'"]?\s*\)';
        
        /* Protected Static Members */