|
@@ -228,7 +228,7 @@ |
|
|
block discarded – undo |
|
228
|
228
|
} else { |
|
229
|
229
|
// Rewrite relative URLs used inside stylesheets |
|
230
|
230
|
$content .= preg_replace_callback( |
|
231
|
|
- '/url\([\'"]?([^"\')]+)[\'"]?\)/i', function ($matches) use ($cssRelPath) { |
|
|
231
|
+ '/url\([\'"]?([^"\')]+)[\'"]?\)/i', function($matches) use ($cssRelPath) { |
|
232
|
232
|
if (preg_match("/^(data:|([a-z0-9]+:)?\/)/i", $matches[1]) === 1) { |
|
233
|
233
|
return $matches[0]; // Not relative, skip |
|
234
|
234
|
} |
Please login to merge, or discard this patch.