diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 594514838..5c46995af 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -1296,7 +1296,6 @@ FW_detailSelect(@) $ret .= "
"; $ret .= FW_hidden("detail", $d); - $ret .= FW_hidden("fwcsrf", $defs{$FW_wname}{CSRFTOKEN}) if($FW_CSRF); $ret .= FW_hidden("dev.$cmd$d", $d.($param ? " $param":"")); $ret .= FW_submit("cmd.$cmd$d", $cmd, $cmd.($psc?" psc":"")); $ret .= "
 $d ". @@ -2032,6 +2031,7 @@ FW_submit($$@) my ($n, $v, $class) = @_; $class = ($class ? "class=\"$class\"" : ""); my $s =""; + $s = FW_hidden("fwcsrf", $defs{$FW_wname}{CSRFTOKEN}).$s if($FW_CSRF); return $s; } @@ -2186,7 +2186,6 @@ FW_style($$) FW_pO "

"; } FW_pO FW_hidden("cmd", "style save $fileName $cfgDB"); - FW_pO FW_hidden("fwcsrf", $defs{$FW_wname}{CSRFTOKEN}) if($FW_CSRF); FW_pO ""; FW_pO ""; @@ -2686,7 +2685,6 @@ FW_makeEdit($$$) FW_pO "
"; FW_pO "
"; FW_pO FW_hidden("detail", $name); - FW_pO FW_hidden("fwcsrf", $defs{$FW_wname}{CSRFTOKEN}) if($FW_CSRF); my $cmd = "modify"; my $ncols = $FW_ss ? 30 : 60; FW_pO "