diff options
Diffstat (limited to 'itjs.php')
-rw-r--r-- | itjs.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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']) |