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(); } }