[pmwiki-users] local wiki cannot unblock

Patrick R. Michaud pmichaud at pobox.com
Wed Oct 18 13:40:09 CDT 2006


On Wed, Oct 18, 2006 at 01:21:35PM -0500, JB wrote:
> > Since the values coming from MoinMaster are regular expressions,
> > one has to use the following to unblock it:
> 
> How does it determine if a blocklist (and/or a blocklist entry) 
> is a regular expression or other type?  What are they other types?

Block entries coming from MoinMaster and Chongqed are all
regular expressions, and the blocklist.php file knows that because
it sets 'format'=>'regex' for those download types.  Thus an
entry in one of these blocklists that looks like \.uni\.ch
is the same as if one had specified in Site.Blocklist:

    block: /\.uni\.ch/

Thus, to unblock this, one has to use "unblock: /\.uni\.ch/".

For PmWiki-formatted blocklists, it's the presence or absence
of a leading slash that determines the type of blocking:

    block: word or phrase
    block: /regex/

Pm




More information about the pmwiki-users mailing list