smcvpostcomment: remove HTML if not allowed
parent
660a4ef151
commit
1bd1b03766
|
@ -205,6 +205,12 @@ sub sessioncgi ($$) { #{{{
|
|||
unless $config{prefix_directives};
|
||||
}
|
||||
|
||||
unless ($allow_html) {
|
||||
$body =~ s/&(\w|#)/&$1/g;
|
||||
$body =~ s/</</g;
|
||||
$body =~ s/>/>/g;
|
||||
}
|
||||
|
||||
# In this template, the [[!meta]] directives should stay at the end,
|
||||
# so that they will override anything the user specifies. (For
|
||||
# instance, [[!meta author="I can fake the author"]]...)
|
||||
|
|
Loading…
Reference in New Issue