On Sunday 06 June 2010 00:49:29, Simon wrote : > Does this mean I need to say > $WhiteUrlPatterns[nz] = 'http://[^/] \\.nz'; ### -AND- > $WhiteUrlPatterns[au] = 'http://[^/] \\.au';
No, just $WhiteUrlPatterns[] automatically creates a new element of the array. Also, I fixed a typo in the page today, there should be a "plus" sign : $WhiteUrlPatterns[] = 'http://[^/]+\\.nz'; Petko > On 6 June 2010 04:19, Petko Yotov <5...@5ko.fr> wrote: > > On Saturday 05 June 2010 13:10:33, Hans wrote : > > > Saturday, June 5, 2010, 8:54:21 AM, Petko Yotov wrote: > > > > Yes, see $WhiteUrlPatterns at this page : > > > > http://www.pmwiki.org/wiki/PmWiki/UrlApprovals > > > > > > This confuses me: > > > > > > Is $WhiteUrlPatterns an array or not? > > > > It can be both -- if it is not an array but a string, it will be > > converted to > > an array with a single element. > > > > > In any case neither way worked here ('http://localhost/'), > > > > Both work for me : > > > > $WhiteUrlPatterns = 'http://localhost'; ### -OR- > > $WhiteUrlPatterns[] = 'http://localhost'; > > > > Petko > > > > _______________________________________________ > > pmwiki-users mailing list > > pmwiki-users@pmichaud.com > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users