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:
parent
2a902d7925
commit
baecaa3fd6
@ -30,7 +30,7 @@ $declaration_id = GETPOST('id', 'int');
|
||||
$token = GETPOST('token', 'alpha');
|
||||
|
||||
// Validate token
|
||||
if (!dol_verifyToken($token)) {
|
||||
if (!checkToken($token)) {
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user