Index: openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl,v diff -u -N -r1.189.2.53 -r1.189.2.54 --- openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 3 Jun 2020 18:41:03 -0000 1.189.2.53 +++ openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 10 Jun 2020 08:56:47 -0000 1.189.2.54 @@ -836,10 +836,13 @@ if { $entire_form_p } { set the_form [ns_getform] - for { set i 0 } { $i < [ns_set size $the_form] } { incr i } { - set varname [ns_set key $the_form $i] - set varvalue [ns_set value $the_form $i] - lappend noprocessing_vars [list $varname $varvalue] + # ns_getform will return the empty string outside a connection + if { $the_form ne "" } { + for { set i 0 } { $i < [ns_set size $the_form] } { incr i } { + set varname [ns_set key $the_form $i] + set varvalue [ns_set value $the_form $i] + lappend noprocessing_vars [list $varname $varvalue] + } } }