Index: openacs-4/packages/general-comments/www/comment-add-3.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/www/comment-add-3.tcl,v diff -u -r1.13.2.4 -r1.13.2.5 --- openacs-4/packages/general-comments/www/comment-add-3.tcl 16 Mar 2022 10:47:32 -0000 1.13.2.4 +++ openacs-4/packages/general-comments/www/comment-add-3.tcl 26 Apr 2022 19:25:17 -0000 1.13.2.5 @@ -12,13 +12,13 @@ object_id:naturalnum,notnull title:notnull content:html,notnull - comment_mime_type:notnull + comment_mime_type:notnull,printable { context_id:naturalnum "$object_id" } { category "" } { return_url:localurl "" } { attach_p:boolean "f" } } -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