MINOR: Text fix.

This commit is contained in:
Sam Minnee 2011-10-29 17:11:35 +13:00
parent 0d683dd8ef
commit ec73555db4

View File

@ -149,7 +149,7 @@ class SecurityTest extends FunctionalTest {
// Test external redirection on ChangePasswordForm // Test external redirection on ChangePasswordForm
$this->get('Security/changepassword?BackURL=http://myspoofedhost.com'); $this->get('Security/changepassword?BackURL=http://myspoofedhost.com');
$changedResponse = $this->doTestChangepasswordForm('1nitialPassword', 'changedPassword'); $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" "Redirection to external links in change password form BackURL gets prevented as a measure against spoofing attacks"
); );