* Thu Aug 07 2025 Brian Read <brianr@koozali.org> 11.0.0-112.sme
- Fix sprintf fail in viewlogfiles when % in log line [SME: 13099] - Fix reboot/shutdown failure - reported by Massimo - fixed by JC [SME: 13097]
This commit is contained in:
@@ -211,8 +211,8 @@ sub showlogFile {
|
||||
$_ = timestamp2local($_);
|
||||
$_ = HTML::Entities::encode_entities($_);
|
||||
($log_datas{highlightpattern} && /$log_datas{highlightpattern}/)
|
||||
? $out .= sprintf("<b>$_</b>")
|
||||
: $out .= sprintf("$_");
|
||||
? $out .= "<b>$_</b>"
|
||||
: $out .= "$_";
|
||||
} ## end while (<LOGFILE>)
|
||||
$out .= sprintf("</PRE>");
|
||||
|
||||
@@ -297,4 +297,4 @@ sub download_logFile {
|
||||
);
|
||||
return undef;
|
||||
} ## end sub download_logFile
|
||||
1;
|
||||
1;
|
@@ -34,7 +34,7 @@
|
||||
|
||||
% end
|
||||
|
||||
%= hidden_field 'debug' => '1'
|
||||
%= hidden_field 'debug' => '0'
|
||||
|
||||
</div>
|
||||
%end
|
Reference in New Issue
Block a user