Replace %%CSRF%% variable with CSRF token
parent
ed9f4c8eed
commit
06b7e6dc6e
|
@ -225,6 +225,9 @@
|
||||||
//Die IP Adresse wird in den HTML Quellcode eingef<65>gt.
|
//Die IP Adresse wird in den HTML Quellcode eingef<65>gt.
|
||||||
$this->FertigesHTML = str_replace("%%GET_IP%%", @$_SERVER["REMOTE_ADDR"], $this->FertigesHTML);
|
$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;
|
$this->isBuild = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue