From aa4b89767df4a0753f1a3b62e04a4817bb199fef Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 6 Oct 2014 15:47:45 +0200 Subject: accept GET params in join script files, accept script list in param f --- itjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs.php') diff --git a/itjs.php b/itjs.php index 62cd474..fb3fc42 100644 --- a/itjs.php +++ b/itjs.php @@ -31,7 +31,7 @@ if (false && $crc != "-" && !$_SERVER['HTTP_CACHE_CONTROL'] && $_SERVER['HTTP_IF exit; } -$files = itjs::filenames(it::match('/itjs/([a-z0-9_,.-]*)', $_SERVER['PHP_SELF'])); +$files = itjs::filenames($_GET['files'] ?: it::match('/itjs/([-a-z0-9_,.]*)', $_SERVER['PHP_SELF'])); $data = itjs::filecontents($files); $file = end($files); -- cgit v1.2.3