RE: [PHP4BETA] Dangerous PCRE security error
| From: | Samuel Liddicott | Date: | Wed, 20 Oct 1999 16:05:27 +0000 |
| Subject: | RE: [PHP4BETA] Dangerous PCRE security error | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5605@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Andrei Zmievski [mailto:andrei@ispi.net]
> Sent: Wednesday, October 20, 1999 04:15 PM
> To: Samuel Liddicott
> Cc: php4beta@lists.php.net
> Subject: Re: [PHP4BETA] Dangerous PCRE security error
>
>
> Samuel Liddicott wrote:
> > Perhaps another PCRE /e option, where the replace-string is a function
> name,
> > which is called with one parameter which is the $match[] array,
> containing
> > all the matched patterns.
>
> That actually sounds like a good idea. You'd probably also want to provide
> $userdata parameter.
Ah.. true - but I don't know how you could express that in the current
syntax as there is only space for a string replace parameter. I agree,
though, $userdata is important. Maybe any parameters after the first three
in pcre_replace could be passed as additional parameters to the /e function?
Sam