From a50e901f291274c22208a2891271bb50f2aa4ab1 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 28 May 2006 14:58:59 +0000 Subject: - do not allow pruning founders - do not display full path to installation in error message text (only occurence would be "header already sent" warnings) git-svn-id: file:///svn/phpbb/trunk@5975 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index db612f7aa5..525c215845 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2097,7 +2097,11 @@ function msg_handler($errno, $msg_text, $errfile, $errline) { if (strpos($errfile, 'cache') === false && strpos($errfile, 'template.') === false) { - echo '[phpBB Debug] PHP Notice: in file ' . str_replace(array(realpath($phpbb_root_path), '\\'), array('', '/'), $errfile) . ' on line ' . $errline . ': ' . $msg_text . '
' . "\n"; + // remove complete path to installation, with the risk of changing backslashes meant to be there + $errfile = str_replace(array(realpath($phpbb_root_path), '\\'), array('', '/'), $errfile); + $msg_text = str_replace(array(realpath($phpbb_root_path), '\\'), array('', '/'), $msg_text); + + echo '[phpBB Debug] PHP Notice: in file ' . $errfile . ' on line ' . $errline . ': ' . $msg_text . '
' . "\n"; } } -- cgit v1.2.1