summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-07-28 17:23:19 +0000
committeruckelman <uckelman@nomic.net>2010-07-28 17:23:19 +0000
commitb327b2ecacd86b51925d49145ed446ecf67f0831 (patch)
tree6836f17a62e94c4790a302ad86f2815607e42870 /src
parentfa7ff7be8b5bafdfc3f6b63bdf58cf75c82202cb (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/forum_post_send.php7
1 files changed, 5 insertions, 2 deletions
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);
}