]> rtime.felk.cvut.cz Git - sojka/ikiwiki.git/commit
Add configuration to restrict the formats allowed for comments restrict-comment-formats
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 5 Mar 2013 09:54:51 +0000 (10:54 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 5 Mar 2013 10:00:29 +0000 (11:00 +0100)
commitc42fd7d7580d081f3e3f624fd74219b0435230f6
treec65ba76cd19c329eeb6e25ea080d4c7a7ef9b65c
parentbfc9dc93c9f64a9acfff4683b69995d5a0edb0ea
Add configuration to restrict the formats allowed for comments

I want to write my blog posts in a convenient format (Emacs org mode)
but do not want commenters to be able to use this format for security
reasons. This patch allows to configure which formats are allowed for
writing comments.

Effectively, it restricts the formats enabled with add_plugin to those
mentioned in comments_allowformats. If this is empty, all formats are
allowed, which is the behavior without this patch.
IkiWiki/Plugin/comments.pm