Fix token validation function in download handler

- Changed from dol_verifyToken() to checkToken()
- dol_verifyToken() doesn't exist in this Dolibarr version
- checkToken() is the correct function for token validation
- Should resolve the PHP Fatal error
This commit is contained in:
Frank Cools 2025-10-06 18:06:46 +02:00
parent 2a902d7925
commit baecaa3fd6

View File

@ -30,7 +30,7 @@ $declaration_id = GETPOST('id', 'int');
$token = GETPOST('token', 'alpha');
// Validate token
if (!dol_verifyToken($token)) {
if (!checkToken($token)) {
accessforbidden();
}