Page 1 of 1

show coments in admin area

Posted: Tue Oct 31, 2006 3:26 pm
by Timbalu
Hi
I'll get a

Code: Select all

Warning: preg_match() [function.preg-match]: Unknown modifier 'a' in /homepages/xx/xxxxxxxxx/htdocs/wds/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php on line 1037
inside admin area coments.
It should be be easy to fix, as I remember doing it quite often after upgrading s9y. (or ist it specific to my site?)

Regards, Ian

Re: show coments in admin area

Posted: Tue Oct 31, 2006 3:35 pm
by garvinhicking
Hi!

Line 1037 does not lead to a preg-line in my 1.1-beta checkout. What does that line contain?

Maybe it's because you specified an invalid regular expression in your word/author filters. It should not be a problem of s9y itself, only of your used rules.

Best regards,
Garvin

Posted: Tue Oct 31, 2006 4:02 pm
by Timbalu
Hi Garvin

'hope you had a nice birthday and some quite hours off.

I forgot to say, its s9y 1.0.2 and line 1037 and following says

Code: Select all

                if (preg_match('@' . $item . '@', $match)) {
                    $filtered = true;
                    unset($items[$key]);
                }
I think I just did a ~ instead of the @.
Where do I change these rules?

Regards
Ian

Posted: Wed Nov 01, 2006 5:50 pm
by garvinhicking
Hi!

"@" is the preg-quote modifier, so if you block an author name you need to escape the "@" in your rules, so that it reads "\@".

HTH,
Garvin