diff options
author | Urban Müller | 2018-11-08 15:43:00 +0100 |
---|---|---|
committer | Urban Müller | 2018-11-08 15:43:30 +0100 |
commit | 6fa985166b3deffe7ce24ceadd551f8eac28a0bd (patch) | |
tree | 288328cde51fdde57914b9f6379d0370200815fe | |
parent | f861e9bde29fb3d2e65e9df06c296ea0e45f07f4 (diff) | |
download | itools-6fa985166b3deffe7ce24ceadd551f8eac28a0bd.tar.gz itools-6fa985166b3deffe7ce24ceadd551f8eac28a0bd.tar.bz2 itools-6fa985166b3deffe7ce24ceadd551f8eac28a0bd.zip |
dont validate external css
-rw-r--r-- | itjs.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |