From ec73555db483db6024945f212c4a44689e26900d Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 29 Oct 2011 17:11:35 +1300 Subject: [PATCH] MINOR: Text fix. --- tests/security/SecurityTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/security/SecurityTest.php b/tests/security/SecurityTest.php index b5aea47be..003e8ac0d 100644 --- a/tests/security/SecurityTest.php +++ b/tests/security/SecurityTest.php @@ -149,7 +149,7 @@ class SecurityTest extends FunctionalTest { // Test external redirection on ChangePasswordForm $this->get('Security/changepassword?BackURL=http://myspoofedhost.com'); $changedResponse = $this->doTestChangepasswordForm('1nitialPassword', 'changedPassword'); - $this->assertNotRegExp('/^' . preg_quote('http://myspoofedhost.com', '/') . '/', $changedResponse->getHeader('Location'), + $this->assertNotRegExp('/^' . preg_quote('http://myspoofedhost.com', '/') . '/', (string)$changedResponse->getHeader('Location'), "Redirection to external links in change password form BackURL gets prevented as a measure against spoofing attacks" );