From: Roan Kattouw Date: Sat, 19 Feb 2011 14:46:49 +0000 (+0000) Subject: Revert r82218 , doesn't fix absolute path URLs but breaks them. Will fix properly... X-Git-Tag: 1.31.0-rc.0~31896 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=a99d1f47e55fcc15f016ed587cef72338e19bea3;p=lhc%2Fweb%2Fwiklou.git Revert r82218 , doesn't fix absolute path URLs but breaks them. Will fix properly in next commit --- 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;