summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-06-12 01:30:05 +0000
committercommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-06-12 01:30:05 +0000
commit553a4dfafaeda59abb72a792c65d97229b827cf6 (patch)
tree1d95c6e42a841dfdc3fb3539e38f9d5c89a7833f
parentf9236cccd24065435eea2008d2d577541a6246f2 (diff)
downloadcacert-boardvoting-553a4dfafaeda59abb72a792c65d97229b827cf6.tar.gz
cacert-boardvoting-553a4dfafaeda59abb72a792c65d97229b827cf6.tar.xz
cacert-boardvoting-553a4dfafaeda59abb72a792c65d97229b827cf6.zip
character set fix
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@54 d4452222-2f33-11de-9270-010000000000
-rw-r--r--database.php2
-rw-r--r--motions.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/database.php b/database.php
index 9179ab6..94f497a 100644
--- a/database.php
+++ b/database.php
@@ -95,7 +95,7 @@ BODY;
} else {
$header = "References: <".$tag.">\r\nIn-reply-to: <".$tag.">\r\n";
}
- mail($this->board,$subject,$body,$header."From: Voting System <returns@cacert.org>");
+ mail($this->board, mb_encode_mimeheader($subject,"UTF-8", "B", "\n"),$body,$header."From: Voting System <returns@cacert.org>");
//mail("testsympa@lists.cacert.org",$subject,$body,"From: Voting System <returns@cacert.org>");
}
function auth()
diff --git a/motions.php b/motions.php
index 38fc34d..90899b6 100644
--- a/motions.php
+++ b/motions.php
@@ -86,7 +86,7 @@ BODY;
</td>
<td>
<i><a href="motions.php?motion=<?php echo $row['tag'].'">'.$row['tag']; ?></a></i><br/>
- <b><?php echo htmlentities($row['title']); ?></b><br/>
+ <b><?php echo htmlspecialchars($row['title']); ?></b><br/>
<pre><?php echo htmlspecialchars($row['content']); ?></pre>
<br/>
<i>Due: <?php echo($row['due']); ?> UTC</i><br/>