diff options
author | Steve Clay <steve@mrclay.org> | 2011-09-19 16:21:41 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2011-09-19 16:50:46 -0400 |
commit | 57c409526195ebbd46b239f4af06ef199d001df9 (patch) | |
tree | 792ae312c7ce869812d69f776eaac1a0a26a8f32 /engine/lib/elgglib.php | |
parent | 4900853196f83a902a2acac11ae1bd4813bcb3fc (diff) | |
download | elgg-57c409526195ebbd46b239f4af06ef199d001df9.tar.gz elgg-57c409526195ebbd46b239f4af06ef199d001df9.tar.bz2 |
forward throws Exception if headers sent. fix for http://trac.elgg.org/ticket/3765
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 198ffe60c..8358b08ab 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; } /** |