mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +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 {
|
||||
$room =~ s/,.*//;
|
||||
}
|
||||
$link .= "&room=$room";
|
||||
$link .= "&room=".urlEncode($room);
|
||||
}
|
||||
$txt = "<a href=\"$FW_ME$FW_subdir?$link$rf$FW_CSRF\">$txt</a>"
|
||||
if($link !~ m/ noFhemwebLink\b/);
|
||||
|
@ -1099,7 +1099,7 @@ devspec2array($;$)
|
||||
my @res;
|
||||
foreach my $dName (split(":FILTER=", $l)) {
|
||||
my ($n,$op,$re) = ("NAME","=",$dName);
|
||||
if($dName =~ m/^([^!<>]*)(=|!=|<=|>=|<|>)(.*)$/) {
|
||||
if($dName =~ m/^(.*?)(=|!=|<=|>=|<|>)(.*)$/) {
|
||||
($n,$op,$re) = ($1,$2,$3);
|
||||
$isAttr = 1; # Compatibility: return "" instead of $name
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user