Index: openacs-4/packages/file-storage/www/url-goto.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/url-goto.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/file-storage/www/url-goto.tcl 26 May 2005 08:28:46 -0000 1.6 +++ openacs-4/packages/file-storage/www/url-goto.tcl 27 Oct 2014 16:41:34 -0000 1.7 @@ -5,16 +5,16 @@ @creation-date 01 April 2002 @cvs-id $Id$ } { - url_id:notnull + url_id:naturalnum,notnull } # Check for read permission on this url -ad_require_permission $url_id read +permission::require_permission -object_id $url_id -privilege read # Check the URL set url [db_string select_url {} -default {}] -if {![empty_string_p $url]} { +if {$url ne ""} { ad_returnredirect $url } else { return -code error [_ file-storage.no_such_URL]