FHEMWEB: redirect for post commands too

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3488 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-07-24 05:28:17 +00:00
parent 3f67bb2828
commit 4ce143ba02

View File

@ -495,8 +495,7 @@ FW_answerCall($)
$FW_cmdret = $docmd ? FW_fC($cmd, $cmddev) : ""; $FW_cmdret = $docmd ? FW_fC($cmd, $cmddev) : "";
# Redirect after a command, to clean the browser URL window # Redirect after a command, to clean the browser URL window
if($docmd && !$FW_cmdret && $FW_formmethod eq "get" && if($docmd && !$FW_cmdret && AttrVal($FW_wname, "redirectCmds", 1)) {
AttrVal($FW_wname, "redirectCmds", 1)) {
my $tgt = $FW_ME; my $tgt = $FW_ME;
if($FW_detail) { $tgt .= "?detail=$FW_detail" } if($FW_detail) { $tgt .= "?detail=$FW_detail" }
elsif($FW_room) { $tgt .= "?room=$FW_room" } elsif($FW_room) { $tgt .= "?room=$FW_room" }