Update log_viewer.php

This commit is contained in:
FusionPBX 2019-08-13 13:05:56 -06:00 committed by GitHub
parent 60ea942e1a
commit b21703eb9f
1 changed files with 2 additions and 2 deletions

View File

@ -249,8 +249,8 @@
if ($pos !== false) {
//color adjustments on words in log line
for ($i=2; $i<=$MAXEL; $i++) {
if (isset ($v1["pattern".$i])) {
$log_line = str_replace($v1["pattern".$i], "<span style='color: ".$v1["color".$i].";'>".$v1["pattern".$i]."</span>", $log_line);
if (isset($v1["pattern".$i])) {
$log_line = str_replace(escape($v1["pattern".$i]), "<span style='color: ".$v1["color".$i].";'>".$v1["pattern".$i]."</span>", $log_line);
}
}
$array_output[] = "<span style='color: ".$v1['color']."; font-family: ".$v1['font'].";'>".$log_line."</span><br>";