mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 17:36:39 +00:00
01_FHEMWEB.pl: urlEncode another room
fhem.pl: devspec2array fix for strange rooms git-svn-id: https://svn.fhem.de/fhem/trunk@10747 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
435cdfaaad
commit
e06ec4a439
@ -2715,7 +2715,7 @@ FW_devState($$@)
|
|||||||
} else {
|
} else {
|
||||||
$room =~ s/,.*//;
|
$room =~ s/,.*//;
|
||||||
}
|
}
|
||||||
$link .= "&room=$room";
|
$link .= "&room=".urlEncode($room);
|
||||||
}
|
}
|
||||||
$txt = "<a href=\"$FW_ME$FW_subdir?$link$rf$FW_CSRF\">$txt</a>"
|
$txt = "<a href=\"$FW_ME$FW_subdir?$link$rf$FW_CSRF\">$txt</a>"
|
||||||
if($link !~ m/ noFhemwebLink\b/);
|
if($link !~ m/ noFhemwebLink\b/);
|
||||||
|
@ -1099,7 +1099,7 @@ devspec2array($;$)
|
|||||||
my @res;
|
my @res;
|
||||||
foreach my $dName (split(":FILTER=", $l)) {
|
foreach my $dName (split(":FILTER=", $l)) {
|
||||||
my ($n,$op,$re) = ("NAME","=",$dName);
|
my ($n,$op,$re) = ("NAME","=",$dName);
|
||||||
if($dName =~ m/^([^!<>]*)(=|!=|<=|>=|<|>)(.*)$/) {
|
if($dName =~ m/^(.*?)(=|!=|<=|>=|<|>)(.*)$/) {
|
||||||
($n,$op,$re) = ($1,$2,$3);
|
($n,$op,$re) = ($1,$2,$3);
|
||||||
$isAttr = 1; # Compatibility: return "" instead of $name
|
$isAttr = 1; # Compatibility: return "" instead of $name
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user