From f33c10237e34231c186510e8444ddcba1fad60cd Mon Sep 17 00:00:00 2001 From: Joel Uckelman Date: Mon, 27 Feb 2012 02:16:44 +0100 Subject: Trim subject before returning. --- src/build_post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/build_post.php') 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)'; } -- cgit v1.2.3