2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 18:56:03 +00:00

55_InfoPanel.pm: add csrf token (featureLevel 5.8)

git-svn-id: https://svn.fhem.de/fhem/trunk@13454 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-02-19 17:41:32 +00:00
parent eacede480a
commit 61cf98a2eb

View File

@ -1397,7 +1397,8 @@ sub btIP_returnHTML {
my $gen = 'generated="'.(time()-1).'"';
my $code = btIP_HTMLHead($name,$title,$viewport,$webApp,$refresh);
$code .= "<body topmargin=\"0\" leftmargin=\"0\" margin=\"0\" padding=\"0\" ".
my $csrf= ($FW_CSRF ? "fwcsrf='$defs{$FW_wname}{CSRFTOKEN}'" : "");
$code .= "<body $csrf topmargin=\"0\" leftmargin=\"0\" margin=\"0\" padding=\"0\" ".
"$gen longpoll=\"1\" longpollfilter=\"room=all\" >\n".
"<div id=\"svg_content\" style=\"position:absolute; top:0px; left:0px; z-index:1\" >\n".