diff --git a/fhem/FHEM/92_FileLog.pm b/fhem/FHEM/92_FileLog.pm index c2fd3956f..afcfea4f9 100755 --- a/fhem/FHEM/92_FileLog.pm +++ b/fhem/FHEM/92_FileLog.pm @@ -9,6 +9,7 @@ use IO::File; # This block is only needed when FileLog is loaded bevore FHEMWEB sub FW_pO(@); sub FW_pH(@); +sub FW_addContent(;$); use vars qw($FW_ME); # webname (default is fhem) use vars qw($FW_RET); # Returned data (html) use vars qw($FW_RETTYPE); @@ -486,7 +487,7 @@ FileLog_logWrapper($) my $ret = ""; if(!$d || !$type || !$file) { - FW_pO '
FileLog_logWrapper: bad arguments
'; + FW_addContent(">FileLog_logWrapper: bad arguments"; + FW_addContent(); FW_pO "
" if($FW_ss); FW_pO "
";
     my $suffix = "
".($FW_ss ? "
" : "").""; @@ -509,7 +510,7 @@ FileLog_logWrapper($) } if(!open(FH, $path)) { - FW_pO "
$path: $!
"; + FW_addContent(">$path: $!); @@ -522,7 +523,7 @@ FileLog_logWrapper($) } else { FileLog_loadSVG(); FW_pO ""; - FW_pO "
"; + FW_addContent(); FW_pO "
"; if(AttrVal($d,"plotmode",$FW_plotmode) ne "gnuplot") { FW_pO SVG_zoomLink("$cmd;zoom=-1", "Zoom-in", "zoom in");