show coments in admin area

Found a bug? Tell us!!
Post Reply
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

show coments in admin area

Post 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
Last edited by Timbalu on Tue Oct 31, 2006 3:57 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: show coments in admin area

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply