2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 13:29:26 +00:00

FHEMWEB: redirect for post commands too

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

View File

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