aboutsummaryrefslogtreecommitdiffstats
path: root/tests/security
diff options
context:
space:
mode:
authorasperous <theandychase@gmail.com>2013-04-23 09:55:36 -0700
committerasperous <theandychase@gmail.com>2013-04-23 09:55:36 -0700
commit9f545a7f6ba7ddd54fae083563b5b582e05f5c1c (patch)
tree1f10dd793aabb7cfc3e99fbb7c10437d9dc779b7 /tests/security
parentab628cbdb99eda1c3efbbca7e374f64876800428 (diff)
downloadforums-9f545a7f6ba7ddd54fae083563b5b582e05f5c1c.tar
forums-9f545a7f6ba7ddd54fae083563b5b582e05f5c1c.tar.gz
forums-9f545a7f6ba7ddd54fae083563b5b582e05f5c1c.tar.bz2
forums-9f545a7f6ba7ddd54fae083563b5b582e05f5c1c.tar.xz
forums-9f545a7f6ba7ddd54fae083563b5b582e05f5c1c.zip
[ticket/9975] Moved a few E_USER_ERROR errors to /language
There were a few error messages that a user could experience that would, previously, be without any the ability to be localized. There are some more E_USER_ERRORs that I did not change to a constant, for example the error message that is displayed if there aren't any folders in /language. PHPBB3-9975
Diffstat (limited to 'tests/security')
-rw-r--r--tests/security/redirect_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/security/redirect_test.php b/tests/security/redirect_test.php
index 1325466137..8e36780ca4 100644
--- a/tests/security/redirect_test.php
+++ b/tests/security/redirect_test.php
@@ -18,11 +18,11 @@ class phpbb_security_redirect_test extends phpbb_security_test_base
// array(Input -> redirect(), expected triggered error (else false), expected returned result url (else false))
return array(
array('data://x', false, 'http://localhost/phpBB'),
- array('bad://localhost/phpBB/index.php', 'Tried to redirect to potentially insecure url.', false),
+ array('bad://localhost/phpBB/index.php', 'INSECURE_REDIRECT', false),
array('http://www.otherdomain.com/somescript.php', false, 'http://localhost/phpBB'),
- array("http://localhost/phpBB/memberlist.php\n\rConnection: close", 'Tried to redirect to potentially insecure url.', false),
+ array("http://localhost/phpBB/memberlist.php\n\rConnection: close", 'INSECURE_REDIRECT', false),
array('javascript:test', false, 'http://localhost/phpBB/../javascript:test'),
- array('http://localhost/phpBB/index.php;url=', 'Tried to redirect to potentially insecure url.', false),
+ array('http://localhost/phpBB/index.php;url=', 'INSECURE_REDIRECT', false),
);
}