diff options
author | floam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-02 07:38:19 +0000 |
---|---|---|
committer | floam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-02 07:38:19 +0000 |
commit | 4253885fcc48aa59a00da498172d4599e8950112 (patch) | |
tree | ad57594ae0e39f04ca4fb95bfb3156e205ea6ac1 /web | |
parent | f24e75bd530b7f6fce71bf63ca293d6eceb5aeae (diff) | |
download | ioquake3-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
Diffstat (limited to 'web')
-rw-r--r-- | web/include/thebrain.php | 10 |
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; |