From c294d023af8c61d1f5b962c7b867a14f6bea9bd4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 16:00:35 +0000 Subject: [PATCH] mlanthaler: Bugfix: Variable was not set as needed. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42107 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/Director.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/control/Director.php b/core/control/Director.php index a78d7d18f..a28a4316d 100644 --- a/core/control/Director.php +++ b/core/control/Director.php @@ -223,7 +223,7 @@ class Director { if(isset($_REQUEST['_REDIRECT_BACK_URL'])) { $url = $_REQUEST['_REDIRECT_BACK_URL']; } else if(isset($_SERVER['HTTP_REFERER'])) { - $_SERVER['HTTP_REFERER']; + $url = $_SERVER['HTTP_REFERER']; } Director::redirect($url);