Skip to content

Commit

Permalink
! Quick fix for 'out of bounds' file browsing error in the error log,…
Browse files Browse the repository at this point in the history
… due to files having UTF8 characters. (ManageErrors.php)
  • Loading branch information
Nao committed Feb 19, 2017
1 parent fe4f2b8 commit 82b795f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/ManageErrors.php
Expand Up @@ -660,7 +660,7 @@ function ViewFile()
if ($max <= 0 || $min >= $max)
fatal_lang_error('error_bad_line');

$file_data = explode('<br />', highlight_php_code(htmlspecialchars(implode('', file($file)))));
$file_data = explode('<br />', 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)));
Expand Down

0 comments on commit 82b795f

Please sign in to comment.