From 8b2a5cb5bea519bb685202cbac1bb107787f243e Mon Sep 17 00:00:00 2001 From: phenning <> Date: Mon, 9 Jan 2017 04:49:23 +0000 Subject: [PATCH] 95:PostMe.pm Bugfix beim modify Kommando git-svn-id: https://svn.fhem.de/fhem/trunk@13017 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/95_PostMe.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/95_PostMe.pm b/fhem/FHEM/95_PostMe.pm index 22b25ab95..0e0fed717 100644 --- a/fhem/FHEM/95_PostMe.pm +++ b/fhem/FHEM/95_PostMe.pm @@ -43,7 +43,7 @@ use Time::Local; ######################### # Global variables -my $postmeversion = "2.0"; +my $postmeversion = "2.01"; my $FW_encoding = "UTF-8"; ######################################################################################### @@ -525,8 +525,8 @@ sub PostMe_Modify($$@) { if( $fullitem ne $item ); $new .= $item.' ['; #-- no attributes present so far - if( ($old !~ /.*\[.*\].*/) && ($val) ){ - PostMe_cleanSpecial($hash,$listname,$item,$attr); + if( ($old !~ /.*\[.*\].*/) && ($val) ){ + #PostMe_cleanSpecial($hash,$listname,$item,$attr); PostMe_procSpecial($hash,$listname,$item,$attr,$val); $new .= $attr.'="'.$val.'"'; #-- attributes present already @@ -536,7 +536,7 @@ sub PostMe_Modify($$@) { #-- particular attribute not yet present if( index($old,$attr) < 0){ if( $val ){ - PostMe_cleanSpecial($hash,$listname,$item,$attr); + #PostMe_cleanSpecial($hash,$listname,$item,$attr); PostMe_procSpecial($hash,$listname,$item,$attr,$val); $new .= $old.' '.$attr.'="'.$val.'"' } @@ -558,7 +558,7 @@ sub PostMe_Modify($$@) { #-- remove, if no val is given } } - } + } } } $new .= ']'.$listsep;