diff options
Diffstat (limited to 'itjs.php')
-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 |