mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 07:07:51 +02:00
[ticket/12261] Validate the redirect hidden field before submitting the form
PHPBB3-12261
This commit is contained in:
parent
e8fdc1545a
commit
f43da31bba
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user