From 4253885fcc48aa59a00da498172d4599e8950112 Mon Sep 17 00:00:00 2001 From: floam Date: Wed, 2 Nov 2005 07:38:19 +0000 Subject: Guess my little trick won't work here. git-svn-id: svn://svn.icculus.org/quake3/trunk@226 edf5b092-35ff-0310-97b2-ce42778d08ea --- web/include/thebrain.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'web') 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; -- cgit v1.2.3