aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 9fb8b35c4..ba122b2ec 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1065,12 +1065,15 @@
$callstack = debug_backtrace();
foreach ($callstack as $call)
- {
+ {
+ $call['file'] = str_replace("\\","/",$call['file']);
+
if ($include_subdirs)
{
if (strpos($call['file'], $path) === 0) {
- if ($strict_mode) {
+ if ($strict_mode) {
+ $callstack[1]['file'] = str_replace("\\","/",$callstack[1]['file']);
if ($callstack[1] === $call) { return true; }
}
else
@@ -1081,14 +1084,16 @@
}
else
{
- if (strcmp($path, $call['file'])==0)
+ if (strcmp($path, $call['file'])==0) {
if ($strict_mode) {
if ($callstack[1] === $call) return true;
} else
- return true;
+ return true;
+ }
}
- }
+ }
+ return false;
}
if ($CONFIG->debug)