From e84c224e72f12b8592e1e9f9ae82d63c8224a75d Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 20 Jun 2008 12:25:12 +0000 Subject: Bugfixes on privileged code execution. git-svn-id: https://code.elgg.org/elgg/trunk@1020 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engine/lib/elgglib.php') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 261dc60cc..7a4f3df9b 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -1314,7 +1314,6 @@ // Test path first if (can_path_execute_privileged_codeblock()) { - // Test to see if we can actually execute code by calling any other functions if (trigger_elgg_event("execute_privileged_codeblock", "all")) { @@ -1352,7 +1351,7 @@ $paths = get_data("SELECT * from {$CONFIG->dbprefix}privileged_paths"); foreach ($paths as $p) { - if (in_array($CONFIG->path . "$p", $call_paths)) + if (in_array($CONFIG->path . $p->path, $call_paths)) return true; } -- cgit v1.2.3