summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Uckelman <uckelman@nomic.net>2012-02-27 02:16:44 +0100
committerJoel Uckelman <uckelman@nomic.net>2012-02-27 02:16:44 +0100
commitf33c10237e34231c186510e8444ddcba1fad60cd (patch)
treed96013c6d557b37c087392d344dd305fbb6cb372 /src
parentbd1c62f553ff504a3f2bdd31ef89d67f70cf9ea8 (diff)
Trim subject before returning.
Diffstat (limited to 'src')
-rw-r--r--src/build_post.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build_post.php b/src/build_post.php
index 6d95be1..2685d69 100644
--- a/src/build_post.php
+++ b/src/build_post.php
@@ -19,7 +19,8 @@ function build_post_subject($listtag, $forumtag, $subject) {
}
// ensure nonempty subject
- if (trim($subject) == '') {
+ $subject = trim($subject);
+ if ($subject == '') {
$subject = '(no subject)';
}