character set fix
authorcommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>
Fri, 12 Jun 2009 01:30:05 +0000 (01:30 +0000)
committercommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>
Fri, 12 Jun 2009 01:30:05 +0000 (01:30 +0000)
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@54 d4452222-2f33-11de-9270-010000000000

database.php
motions.php

index 9179ab6..94f497a 100644 (file)
@@ -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()
index 38fc34d..90899b6 100644 (file)
@@ -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/>