aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-03-10 13:59:36 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-03-10 15:27:48 +0100
commitf43da31bba926cd1736302a7c38b5e4baa131f3d (patch)
tree5cf0fe6be3e3999ed76463559d8f7c35c8acd910
parente8fdc1545a54e87541efa404265abbd16dc31ead (diff)
downloadforums-f43da31bba926cd1736302a7c38b5e4baa131f3d.tar
forums-f43da31bba926cd1736302a7c38b5e4baa131f3d.tar.gz
forums-f43da31bba926cd1736302a7c38b5e4baa131f3d.tar.bz2
forums-f43da31bba926cd1736302a7c38b5e4baa131f3d.tar.xz
forums-f43da31bba926cd1736302a7c38b5e4baa131f3d.zip
[ticket/12261] Validate the redirect hidden field before submitting the form
PHPBB3-12261
-rw-r--r--tests/functional/extension_controller_test.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional/extension_controller_test.php b/tests/functional/extension_controller_test.php
index bba11291af..c2e86f167f 100644
--- a/tests/functional/extension_controller_test.php
+++ b/tests/functional/extension_controller_test.php
@@ -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');