diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-07-27 14:55:48 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-07-27 14:55:48 +0000 |
commit | 1a5413275978a307d200d0b52cc30c75da003669 (patch) | |
tree | b986220c2adef6c034b8e5a519487f4521196da4 /phpBB/posting.php | |
parent | ecc8adf3470d0526e98f0c26d696132798880cc5 (diff) | |
download | forums-1a5413275978a307d200d0b52cc30c75da003669.tar forums-1a5413275978a307d200d0b52cc30c75da003669.tar.gz forums-1a5413275978a307d200d0b52cc30c75da003669.tar.bz2 forums-1a5413275978a307d200d0b52cc30c75da003669.tar.xz forums-1a5413275978a307d200d0b52cc30c75da003669.zip |
#13800
git-svn-id: file:///svn/phpbb/trunk@7958 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 7fa97be4c5..c2712009a1 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -512,7 +512,7 @@ if ($save && $user->data['is_registered'] && $auth->acl_get('u_savedrafts') && ( } else { - if (!$subject) + if (!$subject || !utf_clean_string($subject)) { $error[] = $user->lang['EMPTY_SUBJECT']; } @@ -756,7 +756,7 @@ if ($submit || $preview || $refresh) } // Parse subject - if (!$preview && !$refresh && !$post_data['post_subject'] && ($mode == 'post' || ($mode == 'edit' && $post_data['topic_first_post_id'] == $post_id))) + if (!$preview && !$refresh && !utf8_clean_string($post_data['post_subject']) && ($mode == 'post' || ($mode == 'edit' && $post_data['topic_first_post_id'] == $post_id))) { $error[] = $user->lang['EMPTY_SUBJECT']; } |