- Fixed the Filters plugin to allow commas in filter criteria text
[squirrelmail.git] / plugins / filters / filters.php
index 3ceb60bd638fd44937fbbd05bce5f69516a2fc8a..568abfee564084ea8580bee1435f563b3d5cd961 100644 (file)
@@ -592,7 +592,7 @@ function load_filters() {
     for ($i = 0; $fltr = getPref($data_dir, $username, 'filter' . $i); $i++) {
         $ary = explode(',', $fltr);
         $filters[$i]['where'] = $ary[0];
-        $filters[$i]['what'] = $ary[1];
+        $filters[$i]['what'] = str_replace('###COMMA###', ',', $ary[1]);
         $filters[$i]['folder'] = $ary[2];
     }
     return $filters;