mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
rename CSRFToken() to the more apt CSRFTokenFieldTag()
This commit is contained in:
@@ -67,7 +67,7 @@ function ensureCSRFSessionToken()
|
||||
* Add CSRF Token to form
|
||||
*
|
||||
*/
|
||||
function CSRFToken()
|
||||
function CSRFTokenFieldTag()
|
||||
{
|
||||
$token = htmlspecialchars($_SESSION['csrf_token']);
|
||||
return '<input id="csrf_token" type="hidden" name="csrf_token" value="' . $token . '">';
|
||||
|
Reference in New Issue
Block a user