projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
959682a
)
Fixes for missing parameters in js.php
author
Roland Häder
<roland@mxchange.org>
Mon, 16 Aug 2010 18:18:59 +0000
(18:18 +0000)
committer
Roland Häder
<roland@mxchange.org>
Mon, 16 Aug 2010 18:18:59 +0000
(18:18 +0000)
js.php
patch
|
blob
|
history
diff --git
a/js.php
b/js.php
index b1d8ce6118892617ef9b17b886db5b32fd55c183..35600b378091bf06d9927baae207f1458eb921f2 100644
(file)
--- 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