[pmwiki-users] Another Problem caused by recent PmWiki updates

Patrick R. Michaud pmichaud at pobox.com
Tue Mar 13 15:53:12 CDT 2007


On Tue, Mar 13, 2007 at 08:39:40PM +0000, Hans wrote:
> Tuesday, March 13, 2007, 8:19:59 PM, Patrick wrote:
> 
> > 1.  Change the lines in fox.php to use commas as the
> >     wildcard separators, as in:
> 
> >     $permit = (boolean)MatchPageNames($targetname,
> >                        FmtPageName(implode(',', $FoxNameFmt), $pagename));
> 
> okay i do that and will issue a security update.
> 
> To sort out the FoxNameFmt array at the same time:
> If I make it into a keyed array, how would i need to change my
> permission code, ie as above?

If you simply add keys to the array, then the above works
the same as before.  If you're using the wildcards as the keys,
then you'll need to use array_keys() or something like that to
extract them from $FoxNameFmt.

Pm



More information about the pmwiki-users mailing list