Do Html entities on subject...
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sat, 13 Jan 2007 21:25:25 +0000 (21:25 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:18 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@164 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/message.inc.php
banana/spool.inc.php

index 17fcf5c..b3dbc8b 100644 (file)
@@ -108,6 +108,7 @@ final class BananaMessage extends BananaMimePart
 
           case "subject":
             $text = stripslashes($text);
+            $text = html_entities($text);
             return banana_catchFormats($text);
 
           default:
index 505c2c1..0f8b64c 100644 (file)
@@ -430,7 +430,7 @@ class BananaSpool
             if (function_exists('hook_formatDisplayHeader')) {
                 list($subject, $link) = hook_formatDisplayHeader('subject', $subject, true);
             } else {
-                $subject = banana_catchFormats(stripslashes($subject));
+                $subject = banana_catchFormats(banana_htmlentities(stripslashes($subject)));
                 $link = null;
             }
             if (empty($subject)) {