From f43da31bba926cd1736302a7c38b5e4baa131f3d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 10 Mar 2014 13:59:36 +0100 Subject: [ticket/12261] Validate the redirect hidden field before submitting the form PHPBB3-12261 --- tests/functional/extension_controller_test.php | 2 ++ 1 file changed, 2 insertions(+) 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'); -- cgit v1.2.1