Index: openacs-4/packages/attachments/www/go-to-attachment.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attachments/www/go-to-attachment.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/attachments/www/go-to-attachment.tcl 23 Aug 2006 12:46:57 -0000 1.7 +++ openacs-4/packages/attachments/www/go-to-attachment.tcl 23 Aug 2006 13:12:58 -0000 1.8 @@ -26,11 +26,11 @@ } file_storage_object { - db_1row select_attachment_info {}] + db_1row select_attachment_info {} if {[parameter::get -package_id $package_id -parameter BehaveLikeFilesystemP -default 0]} { set filename $title } else { - set filename name + set filename $name } ad_returnredirect "download/[ad_urlencode $filename]?object_id=$object_id&attachment_id=$attachment_id" ad_script_abort