fixed log message

This commit is contained in:
Roland Gruber 2016-12-18 13:08:55 +01:00
parent 5caf322903
commit 7b2cef9981
1 changed files with 2 additions and 1 deletions

View File

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