Happy New Year
[squirrelmail.git] / plugins / fortune / functions.php
index b0b84a3f279274a2af7322f8234503439bd54905..5b1a39992e161c75b47dcfb28d851f6fecbaf82b 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * Fortune plugin functions
  *
- * @copyright 2004-2012 The SquirrelMail Project Team
+ * @copyright 2004-2020 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);