mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
75_MSG: remove @ quotation for perl routing commands (forum #354881)
git-svn-id: https://svn.fhem.de/fhem/trunk@9786 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
31ad18da51
commit
0e029f6add
@ -1812,7 +1812,6 @@ s/^[\s\t]*\|([\w\süöäß^°!"§$%&\/\\()<>=?´`"+\[\]#*@€]+)\|[\s\t]+//
|
||||
# run command
|
||||
undef $@;
|
||||
if ( $cmd =~ s/^[ \t]*\{|\}[ \t]*$//gi ) {
|
||||
$cmd =~ s/@\w+/\\$&/gi;
|
||||
Log3 $logDevice, 5,
|
||||
"msg $device: $type[$i] route command (Perl): $cmd";
|
||||
eval $cmd;
|
||||
|
@ -102,9 +102,9 @@ my $db = {
|
||||
'mail' => {
|
||||
|
||||
'fhemMsgMail' => {
|
||||
'Normal' => '{system("echo \'%MSG%\' | /usr/bin/mail -s \'%TITLE%\' \'%DEVICE%\'")}',
|
||||
'High' => '{system("echo \'%MSG%\' | /usr/bin/mail -s \'[High] %TITLE%\' \'%DEVICE%\'")}',
|
||||
'Low' => '{system("echo \'%MSG%\' | /usr/bin/mail -s \'[Low] %TITLE%\' \'%DEVICE%\'")}',
|
||||
'Normal' => '{ my $dev=\'%DEVICE%\'; system("echo \'%MSG%\' | /usr/bin/mail -s \'%TITLE%\' \'$dev\'"); }',
|
||||
'High' => '{ my $dev=\'%DEVICE%\'; system("echo \'%MSG%\' | /usr/bin/mail -s \'%TITLE%\' \'$dev\'"); }',
|
||||
'Low' => '{ my $dev=\'%DEVICE%\'; system("echo \'%MSG%\' | /usr/bin/mail -s \'%TITLE%\' \'$dev\'"); }',
|
||||
},
|
||||
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user