Index: openacs-4/packages/general-comments/www/url-edit-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/www/url-edit-2.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/general-comments/www/url-edit-2.tcl 1 Mar 2005 00:01:37 -0000 1.3 +++ openacs-4/packages/general-comments/www/url-edit-2.tcl 27 Oct 2014 16:41:44 -0000 1.4 @@ -8,8 +8,8 @@ @creation-date 2000-10-12 @cvs-id $Id$ } { - attach_id:integer,notnull - parent_id:integer,notnull + attach_id:naturalnum,notnull + parent_id:naturalnum,notnull label:notnull url:notnull { return_url {} } @@ -19,7 +19,7 @@ set user_id [ad_conn user_id] # check to see if the user can edit this attachment -ad_require_permission $attach_id write +permission::require_permission -object_id $attach_id -privilege write db_dml edit_url { update cr_extlinks @@ -28,7 +28,7 @@ where extlink_id = :attach_id } -ad_returnredirect "view-comment?comment_id=$parent_id&[export_url_vars return_url]" +ad_returnredirect "view-comment?comment_id=$parent_id&[export_vars -url {return_url}]"