aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/error_collector.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/error_collector.php')
-rw-r--r--phpBB/includes/error_collector.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/includes/error_collector.php b/phpBB/includes/error_collector.php
index 534df27ece..040be4dd13 100644
--- a/phpBB/includes/error_collector.php
+++ b/phpBB/includes/error_collector.php
@@ -42,8 +42,6 @@ class phpbb_error_collector
function format_errors()
{
- $phpbb_root_path = phpbb_realpath(dirname(__FILE__) . '/../');
-
$text = '';
foreach ($this->errors as $error)
{
@@ -55,7 +53,7 @@ class phpbb_error_collector
list($errno, $msg_text, $errfile, $errline) = $error;
// Prevent leakage of local path to phpBB install
- $errfile = str_replace(array($phpbb_root_path, '\\'), array('', '/'), $errfile);
+ $errfile = phpbb_filter_errfile($errfile);
$text .= "Errno $errno: $msg_text at $errfile line $errline";
}