aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-02 07:38:19 +0000
committerfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-02 07:38:19 +0000
commit4253885fcc48aa59a00da498172d4599e8950112 (patch)
treead57594ae0e39f04ca4fb95bfb3156e205ea6ac1
parentf24e75bd530b7f6fce71bf63ca293d6eceb5aeae (diff)
downloadioquake3-aero-4253885fcc48aa59a00da498172d4599e8950112.tar.gz
ioquake3-aero-4253885fcc48aa59a00da498172d4599e8950112.zip
Guess my little trick won't work here.
git-svn-id: svn://svn.icculus.org/quake3/trunk@226 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--web/include/thebrain.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/web/include/thebrain.php b/web/include/thebrain.php
index d89027d..609c63f 100644
--- a/web/include/thebrain.php
+++ b/web/include/thebrain.php
@@ -7,15 +7,7 @@ $navlist = array(
function include_safe($file) {
if (file_exists("include/$file")) {
- if (strpos(realpath("include/$file"), realpath($_SERVER['DOCUMENT_ROOT'])) !== 0) {
- echo $_SERVER['DOCUMENT_ROOT'];
- echo realpath("include/$file");
- $code = 403;
- require("errors.php");
- }
- else {
- include($file);
- }
+ include($file);
}
else {
$code = 404;