summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/itjs.php b/itjs.php
index feb403a..12d8213 100644
--- a/itjs.php
+++ b/itjs.php
@@ -44,6 +44,7 @@ if (it::match('\.gif$', $lastfile))
else if (it::match('\.css', $lastfile))
{
header("Content-Type: text/css");
+ $data = preg_replace_callback('/\burl\(["\']?([^"\'\)]+)["\']?\s*\)/', fn($v) => 'url(' . U($v[1]) . ')', $data); # Pass url(...) through U() for normalization/OneDomain
if (!it::match('^devel', $GLOBALS['ULTRASERVERTYPE']))
$data = it::replace(array('[ \t]*([{};])[ \t]*' => '$1', ($nostrip ? '_LEAVE_COMMENTS_' : '/\*.*?\*/') => ""), $data);
if (it::match('W3C_CSS_Validator', $_SERVER['HTTP_USER_AGENT']) || $_GET['w3c'])