sanitize displayed folder name and load form functions.
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 15 May 2006 15:55:58 +0000 (15:55 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 15 May 2006 15:55:58 +0000 (15:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11139 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/filters/options.php

index 222ca74..b2d4eea 100644 (file)
@@ -15,6 +15,7 @@
  */
 require('../../include/init.php');
 include_once(SM_PATH . 'functions/imap_general.php');
+include_once(SM_PATH . 'functions/forms.php');
 include_once(SM_PATH . 'plugins/filters/filters.php');
 
 displayPageHeader($color, 'None');
@@ -245,7 +246,7 @@ if (count($filters)) {
         printf( _("If %s contains %s then move to %s"),
             '<b>'.$filters[$i]['where'].'</b>',
             '<b>'.$filters[$i]['what'].'</b>',
-            '<b>'.imap_utf7_decode_local($fdr).'</b>');
+            '<b>'.htmlspecialchars(imap_utf7_decode_local($fdr)).'</b>');
         echo '</td></tr>';
 
     }