OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b39b81
)
Web: Show 404 error if wrong language id was committed - Include the 404 page not...
author
Tim Gerundt
<tim@gerundt.de>
Sat, 21 Nov 2009 17:34:05 +0000
(17:34 +0000)
committer
Tim Gerundt
<tim@gerundt.de>
Sat, 21 Nov 2009 17:34:05 +0000
(17:34 +0000)
Web/engine/engine.inc
patch
|
blob
|
history
diff --git
a/Web/engine/engine.inc
b/Web/engine/engine.inc
index
13bf57e
..
47ab533
100644
(file)
--- a/
Web/engine/engine.inc
+++ b/
Web/engine/engine.inc
@@
-55,7
+55,7
@@
}
\r
\r
if (!$translations->isValidLanguageId()) { //if NOT a valid language ID...
\r
-
include('../404.php
');
\r
-
exit(
);
\r
+
header('HTTP/1.1 404 Not Found
');
\r
+
header('Status: 404 Not Found'
);
\r
}
\r
?>
\ No newline at end of file