mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Slash is now accepted in redirects.
This commit is contained in:
@@ -32,7 +32,7 @@ class SessionManagerSubscriberTest extends \PhraseanetAuthenticatedWebTestCase
|
||||
$this->assertTrue($client->getResponse()->isRedirect());
|
||||
$this->assertNotNUll($client->getResponse()->headers->get('x-phraseanet-end-session'));
|
||||
$this->assertNotNUll($client->getResponse()->headers->get('location'));
|
||||
$this->assertEquals('/login?redirect=..%2Fprod', $client->getResponse()->headers->get('location'));
|
||||
$this->assertRegExp('#/login\?redirect=..(?:%2F|/)prod#', $client->getResponse()->headers->get('location'));
|
||||
}
|
||||
|
||||
public function testEndSessionXmlXhttpRequest()
|
||||
@@ -132,7 +132,7 @@ class SessionManagerSubscriberTest extends \PhraseanetAuthenticatedWebTestCase
|
||||
$this->assertTrue($client->getResponse()->isRedirect());
|
||||
$this->assertNotNUll($client->getResponse()->headers->get('x-phraseanet-end-session'));
|
||||
$this->assertNotNUll($client->getResponse()->headers->get('location'));
|
||||
$this->assertEquals('/login?redirect=..%2Fprod', $client->getResponse()->headers->get('location'));
|
||||
$this->assertRegExp('#/login\?redirect=..(?:%2F|/)prod#', $client->getResponse()->headers->get('location'));
|
||||
}
|
||||
|
||||
public function testEndSessionAuthenticatedWithOutdatedIdleXmlHttpRequest()
|
||||
|
Reference in New Issue
Block a user