aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/include/thebrain.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/include/thebrain.php b/web/include/thebrain.php
index 0baf3d0..d89027d 100644
--- a/web/include/thebrain.php
+++ b/web/include/thebrain.php
@@ -8,6 +8,8 @@ $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");
}