From 6b0b7fbeeac876be6ce41d44d7078eb69aa0f296 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 22 Oct 2015 16:29:37 +0200 Subject: [PATCH] Repair redirect after login fixes #10287 --- application/forms/Authentication/LoginForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/forms/Authentication/LoginForm.php b/application/forms/Authentication/LoginForm.php index bb01f8a04..6958def01 100644 --- a/application/forms/Authentication/LoginForm.php +++ b/application/forms/Authentication/LoginForm.php @@ -71,7 +71,7 @@ class LoginForm extends Form if ($this->created) { $redirect = $this->getElement('redirect')->getValue(); } - if (empty($redirect) || strpos($redirect, 'authentication/logout') !== 0) { + if (empty($redirect) || strpos($redirect, 'authentication/logout') === 0) { $redirect = static::REDIRECT_URL; } return Url::fromPath($redirect);