rename CSRFToken() to the more apt CSRFTokenFieldTag()

This commit is contained in:
glaszig
2019-08-01 13:07:27 +02:00
parent 0a255e8b49
commit f36b08c10a
5 changed files with 5 additions and 5 deletions

View File

@@ -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 . '">';