[pmwiki-users] Commentbox and blocklist2 - not stopping the nasties froom getting through

Patrick R. Michaud pmichaud at pobox.com
Tue Aug 2 09:03:21 CDT 2005


On Tue, Aug 02, 2005 at 10:58:29AM +0100, K.A.Bouton wrote:
> Does it not work because of this line in blocklist2
> 
> if ($action != 'edit') return;

Try commenting that line out, or perhaps change it to

    if ($action != 'edit' && $action != 'comment') return;

Pm

> > -----Original Message-----
> > From: John Rankin [mailto:john.rankin at affinity.co.nz] 
> > Sent: Tuesday, August 02, 2005 12:12 AM
> > To: Pmwiki-users at pmichaud.com; K.A.Bouton
> > Subject: Re: [pmwiki-users] Commentbox and blocklist2 - not 
> > stopping the nasties froom getting through
> > 
> > 
> > On Tuesday, 2 August 2005 12:29 AM, K.A.Bouton 
> > <k.a.bouton at reading.ac.uk> wrote:
> > >Commentbox doesn't seem to pickup blocked items written in the 
> > >cdommentbox - as I found to my unpleasant surprise this morning.
> > >
> > >If someone wants to spend that much time messing with my wiki - 
> > >anything else I can do to prevent them? Is there a fix for 
> > commentbox?
> > >
> > This is just a guess, but you might try:
> > 
> > add the following line to your "local/config.php" file, 
> > preferably near the top.
> >     if ($action=='edit' || $action=='comment') 
> > include_once('cookbook/blocklist2.php');
> > 
> > >From the look of it, the blocklist2 script only loads when
> > editing and posting a comment is not an 'edit' action.
> > 
> > Commentbox mimics pressing the 'Post' button on an edit form,
> > so depending on how Blocklist2 works, the 2 recipes might, with
> > a bit of luck, work happily together... Or they might not.
> > -- 
> > JR
> > --
> > John Rankin
> > 
> > 
> > 
> 
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> 




More information about the pmwiki-users mailing list