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.2 -r1.2.2.1 --- openacs-4/packages/attachments/www/go-to-attachment.tcl 10 Sep 2002 22:22:22 -0000 1.2 +++ openacs-4/packages/attachments/www/go-to-attachment.tcl 12 Dec 2002 00:23:52 -0000 1.2.2.1 @@ -26,7 +26,8 @@ } content_item { - ad_returnredirect "download/$object_id?object_id=$object_id&attachment_id=$attachment_id" + set title [db_string select_attachment_title {}] + ad_returnredirect "download/[ad_urlencode $title]?object_id=$object_id&attachment_id=$attachment_id" ad_script_abort return } Index: openacs-4/packages/attachments/www/go-to-attachment.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attachments/www/go-to-attachment.xql,v diff -u -r1.1 -r1.1.2.1 --- openacs-4/packages/attachments/www/go-to-attachment.xql 2 Jul 2002 19:41:20 -0000 1.1 +++ openacs-4/packages/attachments/www/go-to-attachment.xql 12 Dec 2002 00:23:52 -0000 1.1.2.1 @@ -23,5 +23,14 @@ + + + + select r.title + from cr_revisions r, cr_items i + where i.item_id = :attachment_id + and r.revision_id = i.live_revision + +