aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/pagehandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php
index 97357b19f..a2bee1bc5 100644
--- a/engine/lib/pagehandler.php
+++ b/engine/lib/pagehandler.php
@@ -106,14 +106,14 @@
$script = str_replace("..","",$script);
$callpath = $CONFIG->path . $handler . "/" . $page;
- if (!@include($callpath)) {
- if (substr_count($callpath,'.php') == 0) {
+ if (!file_exists($callpath) || is_dir($callpath) || substr_count($callpath,'.php') == 0) {
if (substr($callpath,strlen($callpath) - 1, 1) != "/")
$callpath .= "/";
$callpath .= "index.php";
if (!include($callpath))
return false;
- }
+ } else {
+ include($callpath);
}
return true;