Index: openacs-4/packages/attachments/www/download/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attachments/www/download/index.vuh,v diff -u -r1.1 -r1.2 --- openacs-4/packages/attachments/www/download/index.vuh 2 Jul 2002 19:41:20 -0000 1.1 +++ openacs-4/packages/attachments/www/download/index.vuh 27 Oct 2014 16:41:06 -0000 1.2 @@ -8,8 +8,8 @@ @creation-date 2 July 2002 @cvs-id $Id$ } { - object_id:integer,notnull - attachment_id:integer,notnull + object_id:naturalnum,notnull + attachment_id:naturalnum,notnull } # Permission check @@ -19,7 +19,7 @@ # (and check that this is the right attachment while we're at it) set version_id [db_string select_version_id {} -default {}] -if {[empty_string_p $version_id]} { +if {$version_id eq ""} { ad_return_complaint "bad attachment" ad_script_abort return