01_FHEMWEB.pm: some more details for the CSRF error (Forum #73945)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14785 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-07-25 15:16:18 +00:00
parent 58ce012dcb
commit 1733e5f95d

View File

@ -829,8 +829,9 @@ FW_answerCall($)
my $supplied = defined($FW_webArgs{fwcsrf}) ? $FW_webArgs{fwcsrf} : "";
my $want = $defs{$FW_wname}{CSRFTOKEN};
if($supplied ne $want) {
Log3 $FW_wname, 3, "FHEMWEB $FW_wname CSRF error: $supplied ne $want. ".
"For detals see the csrfToken FHEMWEB attribute";
Log3 $FW_wname, 3, "FHEMWEB $FW_wname CSRF error: $supplied ne $want ".
"for client $FW_chash->{NAME}. ".
"For details see the csrfToken FHEMWEB attribute.";
$FW_httpRetCode = "400 Bad Request";
return 0;
}