[pmwiki-users] Re: Url approbation
Patrick R. Michaud
pmichaud at pobox.com
Wed Jan 4 21:48:04 CST 2006
On Thu, Jan 05, 2006 at 03:11:00AM +0100, Dominique Faure wrote:
> Hi,
>
> How may 'automagically' include $ScriptUrl into the
> $WhiteUrlPatterns[] array to always allow links like
> [[{$ScriptUrl}?foo=bar]] ?
> I'm not very keen on explicitely specify the reference url as it is
> done in the first lines of
> http://www.pmwiki.org/wiki/Site/ApprovedUrls.
I think that the following out to work for this:
$WhiteUrlPatterns[] = preg_quote($ScriptUrl, '!');
Pm
More information about the pmwiki-users
mailing list