summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2018-11-08 15:43:00 +0100
committerUrban Müller2018-11-08 15:43:30 +0100
commit6fa985166b3deffe7ce24ceadd551f8eac28a0bd (patch)
tree288328cde51fdde57914b9f6379d0370200815fe
parentf861e9bde29fb3d2e65e9df06c296ea0e45f07f4 (diff)
downloaditools-6fa985166b3deffe7ce24ceadd551f8eac28a0bd.tar.gz
itools-6fa985166b3deffe7ce24ceadd551f8eac28a0bd.tar.bz2
itools-6fa985166b3deffe7ce24ceadd551f8eac28a0bd.zip
dont validate external css
-rw-r--r--itjs.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/itjs.php b/itjs.php
index 50e2d47..5ec4ae6 100644
--- a/itjs.php
+++ b/itjs.php
@@ -29,6 +29,9 @@ if (is_array($_GET['files']) || it::match('/server/', $_SERVER['DOCUMENT_ROOT'])
itjs::far_future_headers(); # may exit
+if (it::match('W3C_CSS_Validator', $_SERVER['HTTP_USER_AGENT']))
+ $_GET['files'] = it::replace([',jquery.fancybox.css,' => ","], $_GET['files']);
+
$files = itjs::filenames($_GET['files'] ?: it::match('/itjs/([-a-z0-9_,.]*)', $_SERVER['PHP_SELF']));
$data = itjs::filecontents($files);
$lastfile = end($files) ?: it::match('[^,]+$', $_GET['files']); # set correct mime type even if files not found