Index: trunk/phase3/includes/libs/CSSMin.php |
— | — | @@ -144,6 +144,9 @@ |
145 | 145 | $query = $match['query'][0]; |
146 | 146 | $url = "{$remote}/{$match['file'][0]}"; |
147 | 147 | $file = "{$local}/{$match['file'][0]}"; |
| 148 | + // bug 27052 - Guard against double slashes, because foo//../bar |
| 149 | + // apparently resolves to foo/bar on (some?) clients |
| 150 | + $url = preg_replace( '#//+#', '/', $url ); |
148 | 151 | $replacement = false; |
149 | 152 | if ( $local !== false && file_exists( $file ) ) { |
150 | 153 | // Add version parameter as a time-stamp in ISO 8601 format, |