oops, don't delete char before the slash, followup to r83902
authorRyan Kaldari <kaldari@users.mediawiki.org>
Tue, 15 Mar 2011 02:03:01 +0000 (02:03 +0000)
committerRyan Kaldari <kaldari@users.mediawiki.org>
Tue, 15 Mar 2011 02:03:01 +0000 (02:03 +0000)
includes/libs/CSSMin.php

index 78ea564..ad65d24 100644 (file)
@@ -146,7 +146,7 @@ class CSSMin {
                        $file = "{$local}/{$match['file'][0]}";
                        // bug 27052 - Guard against double slashes, because foo//../bar
                        // apparently resolves to foo/bar on (some?) clients
-                       $url = preg_replace( '#[^:]//+#', '/', $url );
+                       $url = preg_replace( '#([^:])//+#', '\1/', $url );
                        $replacement = false;
                        if ( $local !== false && file_exists( $file ) ) {
                                // Add version parameter as a time-stamp in ISO 8601 format,