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:
@@ -102,7 +102,7 @@ class UploadTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
$this->assertTrue($record->get_thumbnail()->is_physically_present());
|
$this->assertTrue($record->get_thumbnail()->is_physically_present());
|
||||||
$fields = $record->get_caption()->get_fields(['FileName']);
|
$fields = $record->get_caption()->get_fields(['FileName']);
|
||||||
$field = array_pop($fields);
|
$field = array_pop($fields);
|
||||||
$this->assertEquals($field->get_serialized_values(), 'KIKOO');
|
$this->assertEquals('KIKOO.JPG', $field->get_serialized_values());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ class SessionManagerSubscriberTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
$this->assertTrue($client->getResponse()->isRedirect());
|
$this->assertTrue($client->getResponse()->isRedirect());
|
||||||
$this->assertNotNUll($client->getResponse()->headers->get('x-phraseanet-end-session'));
|
$this->assertNotNUll($client->getResponse()->headers->get('x-phraseanet-end-session'));
|
||||||
$this->assertNotNUll($client->getResponse()->headers->get('location'));
|
$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()
|
public function testEndSessionXmlXhttpRequest()
|
||||||
@@ -132,7 +132,7 @@ class SessionManagerSubscriberTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
$this->assertTrue($client->getResponse()->isRedirect());
|
$this->assertTrue($client->getResponse()->isRedirect());
|
||||||
$this->assertNotNUll($client->getResponse()->headers->get('x-phraseanet-end-session'));
|
$this->assertNotNUll($client->getResponse()->headers->get('x-phraseanet-end-session'));
|
||||||
$this->assertNotNUll($client->getResponse()->headers->get('location'));
|
$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()
|
public function testEndSessionAuthenticatedWithOutdatedIdleXmlHttpRequest()
|
||||||
|
Reference in New Issue
Block a user