2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

92_FileLog.pm: set FileLog to readonly if NAME eq Regexp (Forum #140177)

git-svn-id: https://svn.fhem.de/fhem/trunk@29455 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2024-12-27 17:25:13 +00:00
parent b290a4f79f
commit 6c9a102c14

View File

@ -183,6 +183,7 @@ FileLog_Define($@)
eval { "Hallo" =~ m/^$a[3]$/ };
return "Bad regexp: $@" if($@);
$hash->{READONLY} = 1 if($a[3] eq $hash->{NAME});
my @t = localtime;
my $f = ResolveDateWildcards($a[2], @t);
if(!$hash->{READONLY}) {