r226 - trunk/web/include

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Nov 2 02:38:19 EST 2005


Author: floam
Date: 2005-11-02 02:38:19 -0500 (Wed, 02 Nov 2005)
New Revision: 226

Modified:
   trunk/web/include/thebrain.php
Log:
Guess my little trick won't work here.


Modified: trunk/web/include/thebrain.php
===================================================================
--- trunk/web/include/thebrain.php	2005-11-02 07:37:25 UTC (rev 225)
+++ trunk/web/include/thebrain.php	2005-11-02 07:38:19 UTC (rev 226)
@@ -7,15 +7,7 @@
 
 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;




More information about the quake3-commits mailing list