37_harmony.pm: one more fix for escapeing of special characters in activity and device names.
see: http://forum.fhem.de/index.php/topic,14163.msg227083.html#msg227083 git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7136 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -156,7 +156,7 @@ harmony_idOfActivity($$;$)
|
||||
my ($hash, $label, $default) = @_;
|
||||
|
||||
my $quoted_label = $label;
|
||||
#$quoted_label =~ s/\./ /g;
|
||||
$quoted_label =~ s/\./ /g;
|
||||
$quoted_label = quotemeta($quoted_label);
|
||||
|
||||
foreach my $activity (@{$hash->{config}->{activity}}) {
|
||||
@@ -195,7 +195,7 @@ harmony_idOfDevice($$;$)
|
||||
my ($hash, $label, $default) = @_;
|
||||
|
||||
my $quoted_label = $label;
|
||||
#$quoted_label =~ s/\./ /g;
|
||||
$quoted_label =~ s/\./ /g;
|
||||
$quoted_label = quotemeta($quoted_label);
|
||||
|
||||
foreach my $device (@{$hash->{config}->{device}}) {
|
||||
|
||||
Reference in New Issue
Block a user