From a99d1f47e55fcc15f016ed587cef72338e19bea3 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 19 Feb 2011 14:46:49 +0000 Subject: [PATCH] Revert r82218 , doesn't fix absolute path URLs but breaks them. Will fix properly in next commit --- includes/libs/CSSMin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index e3b7cde48b..5cd5a7d08c 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -120,8 +120,8 @@ class CSSMin { self::URL_REGEX . '(?P[^;]*)[\;]?/'; $offset = 0; while ( preg_match( $pattern, $source, $match, PREG_OFFSET_CAPTURE, $offset ) ) { - // Skip absolute URIs and relative URIs with absolute paths - if ( preg_match( '/^(\/|https?:\/\/)/', $match['file'][0] ) ) { + // Skip absolute URIs + if ( preg_match( '/^https?:\/\//', $match['file'][0] ) ) { // Move the offset to the end of the match, leaving it alone $offset = $match[0][1] + strlen( $match[0][0] ); continue; -- 2.20.1