aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 12:25:12 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 12:25:12 +0000
commite84c224e72f12b8592e1e9f9ae82d63c8224a75d (patch)
tree437858e7ad97a5eaaa214857c76129decab1c019 /engine
parent6f5997be23ad29fb37c34cc05e521fc967952d38 (diff)
downloadelgg-e84c224e72f12b8592e1e9f9ae82d63c8224a75d.tar.gz
elgg-e84c224e72f12b8592e1e9f9ae82d63c8224a75d.tar.bz2
Bugfixes on privileged code execution.
git-svn-id: https://code.elgg.org/elgg/trunk@1020 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php3
1 files changed, 1 insertions, 2 deletions
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;
}