| Index: trunk/phase3/includes/libs/CSSMin.php |
| — | — | @@ -120,8 +120,8 @@ |
| 121 | 121 | self::URL_REGEX . '(?P<post>[^;]*)[\;]?/'; |
| 122 | 122 | $offset = 0; |
| 123 | 123 | while ( preg_match( $pattern, $source, $match, PREG_OFFSET_CAPTURE, $offset ) ) { |
| 124 | | - // Skip absolute URIs |
| 125 | | - if ( preg_match( '/^https?:\/\//', $match['file'][0] ) ) { |
| | 124 | + // Skip absolute URIs and relative URIs with absolute paths |
| | 125 | + if ( preg_match( '/^(\/|https?:\/\/)/', $match['file'][0] ) ) { |
| 126 | 126 | // Move the offset to the end of the match, leaving it alone |
| 127 | 127 | $offset = $match[0][1] + strlen( $match[0][0] ); |
| 128 | 128 | continue; |