aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
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 /phpBB/includes/functions.php
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 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 58d2ad4760..6b5d7bd1df 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2731,7 +2731,7 @@ function redirect($url, $return = false, $disable_cd_check = false)
// Make sure no linebreaks are there... to prevent http response splitting for PHP < 4.4.2
if (strpos(urldecode($url), "\n") !== false || strpos(urldecode($url), "\r") !== false || strpos($url, ';') !== false)
{
- trigger_error('Tried to redirect to potentially insecure url.', E_USER_ERROR);
+ trigger_error('INSECURE_REDIRECT', E_USER_ERROR);
}
// Now, also check the protocol and for a valid url the last time...
@@ -2740,7 +2740,7 @@ function redirect($url, $return = false, $disable_cd_check = false)
if ($url_parts === false || empty($url_parts['scheme']) || !in_array($url_parts['scheme'], $allowed_protocols))
{
- trigger_error('Tried to redirect to potentially insecure url.', E_USER_ERROR);
+ trigger_error('INSECURE_REDIRECT', E_USER_ERROR);
}
if ($return)
@@ -4182,7 +4182,7 @@ function phpbb_checkdnsrr($host, $type = 'MX')
// Handler, header and footer
/**
-* Error and message handler, call with trigger_error if reqd
+* Error and message handler, call with trigger_error if read
*/
function msg_handler($errno, $msg_text, $errfile, $errline)
{