From c38a9fcc12c1ebf11c5da4699533a9e16768a7f2 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 2 Aug 2015 12:51:05 +0200 Subject: [PATCH] CsrfToken: fix erraneous return value usage --- library/Director/Web/Form/CsrfToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Web/Form/CsrfToken.php b/library/Director/Web/Form/CsrfToken.php index a4056539..24edf88f 100644 --- a/library/Director/Web/Form/CsrfToken.php +++ b/library/Director/Web/Form/CsrfToken.php @@ -34,7 +34,7 @@ class CsrfToken public static function generate() { $seed = mt_rand(); - list ($seed, $token) = hash('sha256', self::getSessionId() . $seed); + $token = hash('sha256', self::getSessionId() . $seed); return sprintf('%s|%s', $seed, $token); }