[EMAIL PROTECTED] wrote:
> Setting $escmode to 1 using local doesn't seem to work.
>
>
> Using embperl 1.36:
> [- $escmode=1 -]<a href=[+ do { '&' } +]>html escaped</a>
> <a href=[+ do { local $escmode=1; '&' } +]>html escaped?</a>
> <a href=[+ do { local $escmode=2; '&' } +]>url escaped</a>
>
> yields:
> <a href=&>html escaped</a>
> <a href=&>html escaped?</a>
> <a href=%26>url escaped</a>
>
> as you can see,
> the second line (with the local $escmode=1) does _not_ get html
> escaped.
>
> the same thing happens using a different nonlocal $escmode, and with
> $escmode value of 5.
>This seems to be a bug in 1.3.6 (I get the same behaviour). It's fixed in 2.0. I don't expect that there will be a 1.3.7 before 2.0 final release Gerald -------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh IT-Securityl�sungen * dynamische Webapplikationen * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 939-122 WWW: http://www.ecos.de/ Fax: +49 6133 939-333 -------------------------------------------------------------- | | ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info | +------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
