Index: openacs-4/packages/acs-tcl/tcl/security-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/security-procs.tcl,v diff -u -r1.126.2.81 -r1.126.2.82 --- openacs-4/packages/acs-tcl/tcl/security-procs.tcl 20 Feb 2023 15:48:46 -0000 1.126.2.81 +++ openacs-4/packages/acs-tcl/tcl/security-procs.tcl 27 Feb 2023 11:37:42 -0000 1.126.2.82 @@ -1503,8 +1503,14 @@ ns_log Warning "__ad_verify_signature: token_id <$raw_token_id> is not an integer" return 0 } - set secret_token [sec_get_token $raw_token_id] + try { + set secret_token [sec_get_token $raw_token_id] + } on error {errmsg} { + ns_log Warning "__ad_verify_signature: token_id <$raw_token_id> validation returns '$errmsg'" + return 0 + } + } else { set secret_token $secret }