From 1f3a067fdfa43b6bacf5b857765d2d3558be365b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 15 Oct 2010 01:11:59 +0000 Subject: [PATCH] BUGFIX: after reset password, the site redirect to non-exisit page (SC #1) (from r104745) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112378 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/ChangePasswordForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/ChangePasswordForm.php b/security/ChangePasswordForm.php index 7853b6cfb..08af3f575 100755 --- a/security/ChangePasswordForm.php +++ b/security/ChangePasswordForm.php @@ -108,7 +108,7 @@ class ChangePasswordForm extends Form { } else { // Redirect to default location - the login form saying "You are logged in as..." - $redirectURL = HTTP::setGetVar('BackURL', urlencode(Director::absoluteBaseURL()), Security::Link('login')); + $redirectURL = HTTP::setGetVar('BackURL', Director::absoluteBaseURL(), Security::Link('login')); Director::redirect($redirectURL); } } else {