Index: openacs-4/packages/general-comments/www/comment-add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/www/comment-add-2.tcl,v diff -u -N -r1.8.2.1 -r1.8.2.2 --- openacs-4/packages/general-comments/www/comment-add-2.tcl 16 Mar 2022 10:30:26 -0000 1.8.2.1 +++ openacs-4/packages/general-comments/www/comment-add-2.tcl 26 Apr 2022 19:25:17 -0000 1.8.2.2 @@ -12,7 +12,7 @@ { object_name "[acs_object_name $object_id]" } title:notnull content:html,notnull - comment_mime_type:notnull + comment_mime_type:notnull,printable { context_id:naturalnum "$object_id" } { category {} } { return_url:localurl {} } @@ -28,7 +28,7 @@ category:onevalue return_url:onevalue } -validate { - comment_mime_type_allowed -requires comment_mime_type:notnull { + comment_mime_type_allowed -requires comment_mime_type:notnull,printable { if {$comment_mime_type ni {"text/plain" "text/html"}} { ad_complain [_ acs-tcl.lt_name_is_not_valid [list name comment_mime_type]] return