From 82b795fe0cc99b7a3bb6ef492687c801aec5050a Mon Sep 17 00:00:00 2001 From: Nao Date: Sun, 19 Feb 2017 14:55:20 +0100 Subject: [PATCH] ! Quick fix for 'out of bounds' file browsing error in the error log, due to files having UTF8 characters. (ManageErrors.php) --- core/app/ManageErrors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/app/ManageErrors.php b/core/app/ManageErrors.php index cfc5cb86..b6f2070d 100644 --- a/core/app/ManageErrors.php +++ b/core/app/ManageErrors.php @@ -660,7 +660,7 @@ function ViewFile() if ($max <= 0 || $min >= $max) fatal_lang_error('error_bad_line'); - $file_data = explode('
', highlight_php_code(htmlspecialchars(implode('', file($file))))); + $file_data = explode('
', highlight_php_code(westr::safe(implode('', file($file))))); // We don't want to slice off too many so let's make sure we stop at the last one $max = min($max, max(array_keys($file_data)));