aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-06 16:58:22 -0700
committerCash Costello <cash.costello@gmail.com>2011-10-06 16:58:22 -0700
commit26b56fb5d6d71bb56f03d0d4e999e09a1fc81476 (patch)
tree667e08543ddbfed585a1d99c8b115c0cd5c7557c /engine/lib/elgglib.php
parent4706f47ca0b19d9baa45742ae7c8d270c42e9490 (diff)
parent57c409526195ebbd46b239f4af06ef199d001df9 (diff)
downloadelgg-26b56fb5d6d71bb56f03d0d4e999e09a1fc81476.tar.gz
elgg-26b56fb5d6d71bb56f03d0d4e999e09a1fc81476.tar.bz2
Merge pull request #69 from mrclay/issue3765
Fixes #3765 forward throws Exception if headers sent.
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index c62175629..64bdf9276 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -143,9 +143,9 @@ function forward($location = "", $reason = 'system') {
} else if ($location === '') {
exit;
}
+ } else {
+ throw new SecurityException(elgg_echo('SecurityException:ForwardFailedToRedirect'));
}
-
- return false;
}
/**