Commit a4f431ae authored by Kjartan's avatar Kjartan
Browse files

- strip HTML tags from comment subjects.

parent e8ca5acd
......@@ -115,7 +115,7 @@ function comment_post($edit) {
}
else {
// validate subject:
$edit[subject] = $edit[subject] ? $edit[subject] : substr($edit[comment], 0, 29);
$edit[subject] = strip_tags(($edit[subject] ? $edit[subject] : substr($edit[comment], 0, 29)));
// add watchdog entry:
watchdog("special", "comment: added '$edit[subject]'");
......
......@@ -115,7 +115,7 @@ function comment_post($edit) {
}
else {
// validate subject:
$edit[subject] = $edit[subject] ? $edit[subject] : substr($edit[comment], 0, 29);
$edit[subject] = strip_tags(($edit[subject] ? $edit[subject] : substr($edit[comment], 0, 29)));
// add watchdog entry:
watchdog("special", "comment: added '$edit[subject]'");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment