On Sat, May 16, 2009 at 3:55 PM, Res <res@xxxxxxxxxx> wrote: > > On Sat, 16 May 2009, Paul Lesniewski wrote: > >>> >>> file: functions/db_prefs.php >>> class: dbPrefs >>> var $default = Array( >>> ... >>> 'filters_user_scan' => 'new', >>> 'filter0' => 'Header,X-Spam-Status: Yes,Junk', >>> ...) >> >> Sloppy sloppy sloppy. To "fix" it and not break everyone's filters, >> we'll have to add a terrible hack I'm afraid.... > > drats, ok, let me now if you want it tested. Here's the ugly hack. I don't use client side filters, so please help test this. Index: filters.php =================================================================== --- filters.php (revision 13680) +++ filters.php (working copy) @@ -528,7 +528,7 @@ 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; Index: options.php =================================================================== --- options.php (revision 13680) +++ options.php (working copy) @@ -79,7 +79,7 @@ } if ($complete_post) { - $filter_what = str_replace(',', ' ', $filter_what); + $filter_what = str_replace(',', '###COMMA###', $filter_what); $filter_what = str_replace("\\\\", "\\", $filter_what); $filter_what = str_replace("\\\"", '"', $filter_what); $filter_what = str_replace('"', '"', $filter_what); -- Paul Lesniewski SquirrelMail Team Please support Open Source Software by donating to SquirrelMail! http://squirrelmail.org/donate_paul_lesniewski.php ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ----- squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users