- strip HTML tags from comment subjects.

4.0.x
Kjartan Mannes 2001-12-09 13:40:47 +00:00
parent e8ca5acdde
commit a4f431aeb4
2 changed files with 2 additions and 2 deletions

View File

@ -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]'");

View File

@ -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]'");