From c38f617a9b4a8186574c64db6663b5582fd49acb Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 14 Apr 2011 01:51:56 +0000 Subject: Fixes #3268 forwarding to referrer (fixed by ashwanthkumar) git-svn-id: http://code.elgg.org/elgg/trunk@8995 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/actions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine/lib/actions.php') diff --git a/engine/lib/actions.php b/engine/lib/actions.php index 407b99f87..47e4dd4a4 100644 --- a/engine/lib/actions.php +++ b/engine/lib/actions.php @@ -113,7 +113,11 @@ function action($action, $forwarder = "") { register_error(elgg_echo('actionundefined', array($action))); } - forward($forwarder); + if (!empty($forwarder)) { + forward($forwarder); + } else { + forward(REFERER); + } } /** -- cgit v1.2.3