diff options
author | Joel Uckelman <uckelman@nomic.net> | 2012-02-27 02:16:44 +0100 |
---|---|---|
committer | Joel Uckelman <uckelman@nomic.net> | 2012-02-27 02:16:44 +0100 |
commit | f33c10237e34231c186510e8444ddcba1fad60cd (patch) | |
tree | d96013c6d557b37c087392d344dd305fbb6cb372 | |
parent | bd1c62f553ff504a3f2bdd31ef89d67f70cf9ea8 (diff) |
Trim subject before returning.
-rw-r--r-- | src/build_post.php | 3 |
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)'; } |