fsf changes, meant to be rebased on upstream
[squirrelmail.git] / plugins / fortune / functions.php
index 45794846536a163dd2ab10864056c18e23ec5d18..15f4c6add6a1d6247a607166a941c227f31fc9c5 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * Fortune plugin functions
  *
- * @copyright 2004-2011 The SquirrelMail Project Team
+ * @copyright 2004-2022 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -50,7 +50,7 @@ function fortune_function() {
     }
 
     $oTemplate->assign('color', $color);
-    $oTemplate->assign('fortune', htmlspecialchars($fortune));
+    $oTemplate->assign('fortune', sm_encode_html_special_chars($fortune));
     $output = $oTemplate->fetch('plugins/fortune/mailbox_index_before.tpl');
     return array('mailbox_index_before' => $output);