mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
58ce012dcb
commit
1733e5f95d
@ -829,8 +829,9 @@ FW_answerCall($)
|
|||||||
my $supplied = defined($FW_webArgs{fwcsrf}) ? $FW_webArgs{fwcsrf} : "";
|
my $supplied = defined($FW_webArgs{fwcsrf}) ? $FW_webArgs{fwcsrf} : "";
|
||||||
my $want = $defs{$FW_wname}{CSRFTOKEN};
|
my $want = $defs{$FW_wname}{CSRFTOKEN};
|
||||||
if($supplied ne $want) {
|
if($supplied ne $want) {
|
||||||
Log3 $FW_wname, 3, "FHEMWEB $FW_wname CSRF error: $supplied ne $want. ".
|
Log3 $FW_wname, 3, "FHEMWEB $FW_wname CSRF error: $supplied ne $want ".
|
||||||
"For detals see the csrfToken FHEMWEB attribute";
|
"for client $FW_chash->{NAME}. ".
|
||||||
|
"For details see the csrfToken FHEMWEB attribute.";
|
||||||
$FW_httpRetCode = "400 Bad Request";
|
$FW_httpRetCode = "400 Bad Request";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user