mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
improve CSRFToken() implementation
This commit is contained in:
parent
2f6dc2cc05
commit
6f1ae104f3
@ -69,9 +69,8 @@ function ensureCSRFSessionToken()
|
|||||||
*/
|
*/
|
||||||
function CSRFToken()
|
function CSRFToken()
|
||||||
{
|
{
|
||||||
?>
|
$token = htmlspecialchars($_SESSION['csrf_token']);
|
||||||
<input id="csrf_token" type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($_SESSION['csrf_token'], ENT_QUOTES); ?>" />
|
echo '<input id="csrf_token" type="hidden" name="csrf_token" value="' . $token . '">';
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user