Index: openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl,v diff -u -r1.30.4.2 -r1.30.4.3 --- openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl 28 Sep 2013 14:49:10 -0000 1.30.4.2 +++ openacs-4/packages/acs-content-repository/tcl/revision-procs.tcl 30 Sep 2013 17:44:27 -0000 1.30.4.3 @@ -92,7 +92,7 @@ ns_set put [ns_conn outputheaders] "Content-Length" 0 ns_return 200 text/plain {} } else { - if {[info command ad_returnfile_background] eq "" || [security::secure_conn_p]} { + if {[info commands ad_returnfile_background] eq "" || [security::secure_conn_p]} { ns_returnfile 200 $mime_type $filename } else { ad_returnfile_background 200 $mime_type $filename @@ -243,9 +243,10 @@ # the AOLserver jpegsize command has some bugs where the height comes # through as 1 or 2 - if { $what_aolserver_told_us ne "" && \ - [lindex $what_aolserver_told_us 0] > 10 && \ - [lindex $what_aolserver_told_us 1] > 10 } { + if { $what_aolserver_told_us ne "" + && [lindex $what_aolserver_told_us 0] > 10 + && [lindex $what_aolserver_told_us 1] > 10 + } { set original_width [lindex $what_aolserver_told_us 0] set original_height [lindex $what_aolserver_told_us 1] } else {