From b327b2ecacd86b51925d49145ed446ecf67f0831 Mon Sep 17 00:00:00 2001 From: uckelman Date: Wed, 28 Jul 2010 17:23:19 +0000 Subject: Decode HTML entities in forum name and post subject. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7043 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/forum_post_send.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/forum_post_send.php') diff --git a/src/forum_post_send.php b/src/forum_post_send.php index 96cd009..9d9ff33 100644 --- a/src/forum_post_send.php +++ b/src/forum_post_send.php @@ -60,8 +60,11 @@ function send_post_to_lists($config, $user, $mode, $data, $post_data) { $sender = 'forum-bridge@vassalengine.org'; - $subject = '[' . $post_data['forum_name'] . '] ' - . $post_data['post_subject']; + $subject = html_entity_decode( + '[' . $post_data['forum_name'] . '] ' . $post_data['post_subject'], + ENT_QUOTES + ); + if (!is_ascii($subject)) { $subject = utf8_quote($subject); } -- cgit v1.2.3