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 -N -r1.78.2.36 -r1.78.2.37 --- openacs-4/packages/acs-tcl/tcl/security-procs.tcl 1 Dec 2016 14:13:53 -0000 1.78.2.36 +++ openacs-4/packages/acs-tcl/tcl/security-procs.tcl 1 Dec 2016 14:26:23 -0000 1.78.2.37 @@ -75,13 +75,16 @@ ad_proc -private sec_handler_reset {} { - provide dummy values for global variables provided by the + Provide dummy values for global variables provided by the sec_handler, in case, the sec_handler is not called or runs into an exception. } { set ::__csp_nonce [::security::csp::nonce] set ::__csrf_token "" + + # initialize untrusted user id + ad_conn -set untrusted_user_id 0 } ad_proc -private sec_handler {} {