mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
01_FHEMWEB.pm: do not crash on wrong column spec
git-svn-id: https://svn.fhem.de/fhem/trunk@17277 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
50a05388c0
commit
ed43252995
@ -1983,10 +1983,15 @@ FW_parseColumns($)
|
||||
foreach my $group (split(",",$groups)) {
|
||||
$group =~ s/%20/ /g; # Forum #33612
|
||||
$group = "^$group\$"; #71381
|
||||
foreach my $g (grep /$group/ ,@grouplist) {
|
||||
next if($handled{$g});
|
||||
$handled{$g} = 1;
|
||||
$columns{$g} = [$lineNo++, $colNo]; #23212
|
||||
eval { "Hallo" =~ m/^$group$/ };
|
||||
if($@) {
|
||||
Log3 $FW_wname, 1, "Bad regexp in column spec: $@";
|
||||
} else {
|
||||
foreach my $g (grep /$group/ ,@grouplist) {
|
||||
next if($handled{$g});
|
||||
$handled{$g} = 1;
|
||||
$columns{$g} = [$lineNo++, $colNo]; #23212
|
||||
}
|
||||
}
|
||||
}
|
||||
$colNo++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user