From 7b2cef9981cc42b36839b433b32702f36bfccbbb Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 18 Dec 2016 13:08:55 +0100 Subject: [PATCH] fixed log message --- lam/lib/security.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/lib/security.inc b/lam/lib/security.inc index a48d28f0..1af098e3 100644 --- a/lam/lib/security.inc +++ b/lam/lib/security.inc @@ -525,7 +525,8 @@ function validateSecurityToken($post = true) { return; } if (empty($vars[getSecurityTokenName()]) || ($vars[getSecurityTokenName()] != $_SESSION[getSecurityTokenName()])) { - logNewMessage(LOG_ERR, 'Security token does not match POST data.'); + $method = $post ? 'POST' : 'GET'; + logNewMessage(LOG_ERR, 'Security token does not match ' . $method . ' data.'); die(); } }