mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
01_FHEMWEB.pm: fix perl 5.30 unescaped { warning (Forum #113311)
git-svn-id: https://svn.fhem.de/fhem/trunk@22527 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b6e42d2140
commit
3c4c9afa7d
@ -3521,7 +3521,8 @@ FW_log($$)
|
|||||||
);
|
);
|
||||||
|
|
||||||
$fmt =~ s/%([^" ]*)/defined($cp{$1}) ? $cp{$1} : "%$1"/ge;
|
$fmt =~ s/%([^" ]*)/defined($cp{$1}) ? $cp{$1} : "%$1"/ge;
|
||||||
$fmt =~ s/%{([^" ]*)}/defined($FW_httpheader{$1}) ?$FW_httpheader{$1}:"$1"/ge;
|
$fmt =~ s/%\{([^" ]*)\}/
|
||||||
|
defined($FW_httpheader{$1}) ? $FW_httpheader{$1} : "%{$1}" /gex;
|
||||||
|
|
||||||
my $ld = AttrVal($FW_wname, "logDevice", undef);
|
my $ld = AttrVal($FW_wname, "logDevice", undef);
|
||||||
CallFn($ld, "LogFn", $defs{$ld}, $fmt) if($defs{$ld});
|
CallFn($ld, "LogFn", $defs{$ld}, $fmt) if($defs{$ld});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user