From 55fc4f6a86efe34a73a4226f17cc5477b9374bcc Mon Sep 17 00:00:00 2001 From: Ryan Kaldari Date: Tue, 15 Mar 2011 02:03:01 +0000 Subject: [PATCH] oops, don't delete char before the slash, followup to r83902 --- 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 78ea564180..ad65d24435 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -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, -- 2.20.1