| Index: trunk/phase3/includes/libs/CSSMin.php |
| — | — | @@ -36,7 +36,7 @@ |
| 37 | 37 | * which when base64 encoded will result in a 1/3 increase in size. |
| 38 | 38 | */ |
| 39 | 39 | const EMBED_SIZE_LIMIT = 24576; |
| 40 | | - const URL_REGEX = 'url\(\s*[\'"]?(?P<file>[^\?\)\'"]*)\??[^\)\'"]*[\'"]?\s*\)'; |
| | 40 | + const URL_REGEX = 'url\(\s*[\'"]?(?P<file>[^\?\)\'"]*)(?P<query>\??[^\)\'"]*)[\'"]?\s*\)'; |
| 41 | 41 | |
| 42 | 42 | /* Protected Static Members */ |
| 43 | 43 | |
| — | — | @@ -130,6 +130,7 @@ |
| 131 | 131 | $embed = $match['embed'][0]; |
| 132 | 132 | $pre = $match['pre'][0]; |
| 133 | 133 | $post = $match['post'][0]; |
| | 134 | + $query = $match['query'][0]; |
| 134 | 135 | $url = "{$remote}/{$match['file'][0]}"; |
| 135 | 136 | $file = "{$local}/{$match['file'][0]}"; |
| 136 | 137 | $replacement = false; |
| — | — | @@ -163,7 +164,7 @@ |
| 164 | 165 | } |
| 165 | 166 | } else if ( $local === false ) { |
| 166 | 167 | // Assume that all paths are relative to $remote, and make them absolute |
| 167 | | - $replacement = "{$embed}{$pre}url({$url}){$post};"; |
| | 168 | + $replacement = "{$embed}{$pre}url({$url}{$query}){$post};"; |
| 168 | 169 | } |
| 169 | 170 | if ( $replacement !== false ) { |
| 170 | 171 | // Perform replacement on the source |