mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Text fix.
This commit is contained in:
parent
0d683dd8ef
commit
ec73555db4
@ -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"
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user