From 3d60ca39e6e68f5dd9451e2f11524d8688e5ad03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 16 Aug 2010 18:18:59 +0000 Subject: [PATCH] Fixes for missing parameters in js.php --- js.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js.php b/js.php index b1d8ce6118..35600b3780 100644 --- a/js.php +++ b/js.php @@ -56,8 +56,9 @@ $GLOBALS['module'] = 'js'; // Load the required file(s) require('inc/config-global.php'); -// Set header +// Set header and HTTP status setContentType('text/javascript'); +setHttpStatus('404 NOT FOUND'); // Is 'js' is provied? if (isGetRequestParameterSet('js')) { @@ -71,6 +72,9 @@ if (isGetRequestParameterSet('js')) { // Is that file readable? if (isIncludeReadable($inc)) { + // Okay, found + setHttpStatus('200 OK'); + // Include it loadIncludeOnce($inc); } // END - if -- 2.39.5