2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 14:47:00 +00:00

93_DbRep: fix check of DbRep_afterproc, DbRep_beforeproc

git-svn-id: https://svn.fhem.de/fhem/trunk@27720 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2023-07-02 08:57:40 +00:00
parent cb5898528e
commit a60c42a5b5
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 93_DbRep: fix check of DbRep_afterproc, DbRep_beforeproc if should
exec PERL code
- bugfix : 74_AutomowerConnect: Common.pm fixed bug in WS filter
- feature: 74_AutomowerConnect: Common.pm Cref update, add Log after WS filter
add Collisions to statistics and zones if addPollingMinInterval is set

View File

@ -59,6 +59,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch';
# Version History intern
my %DbRep_vNotesIntern = (
"8.52.8" => "28.06.2023 fix check of DbRep_afterproc, DbRep_beforeproc if should exec PERL code ",
"8.52.7" => "16.05.2023 DbRep_afterproc, DbRep_beforeproc can execute FHEM commands as well as PERL code ",
"8.52.6" => "11.04.2023 change diffValue for aggr month ",
"8.52.5" => "10.04.2023 change diffValue, Forum: https://forum.fhem.de/index.php?msg=1271853 ",
@ -1642,7 +1643,7 @@ sub DbRep_Attr {
if ($aName =~ /executeAfterProc|executeBeforeProc/xs) {
if($cmd eq "set") {
if ($aVal =~ m/^\s*(\{.*\}|{.*|.*})\s*$/xs) {
if ($aVal =~ m/^\s*(\{.*\}|{.*|.*})\s*$/xs && $aVal !~ /{".*"}/xs) {
$aVal = $1;
eval $aVal;
return $@ if ($@);