Replace %%CSRF%% variable with CSRF token
parent
ed9f4c8eed
commit
06b7e6dc6e
|
@ -224,6 +224,9 @@
|
|||
|
||||
//Die IP Adresse wird in den HTML Quellcode eingef<65>gt.
|
||||
$this->FertigesHTML = str_replace("%%GET_IP%%", @$_SERVER["REMOTE_ADDR"], $this->FertigesHTML);
|
||||
|
||||
// Add CSRF token
|
||||
$this->FertigesHTML = str_replace("%%CSRF%%", '<input type="hidden" name="csrf" value="'.$_SESSION['csrf'].'">');
|
||||
|
||||
$this->isBuild = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue