mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/12261] Validate the redirect hidden field before submitting the form
PHPBB3-12261
This commit is contained in:
@@ -124,6 +124,8 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
|
||||
'username' => 'admin',
|
||||
'password' => 'adminadmin',
|
||||
));
|
||||
$this->assertStringStartsWith('./app.php/foo/login_redirect', $form->get('redirect')->getValue());
|
||||
|
||||
$crawler = self::submit($form);
|
||||
$this->assertContains("I am a variable", $crawler->filter('#content')->text(), 'Unsuccessful redirect after using login_box()');
|
||||
$this->phpbb_extension_manager->purge('foo/bar');
|
||||
|
Reference in New Issue
Block a user