perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: html escaping bug?
Date Mon, 02 Feb 2004 19:41:53 GMT
josh@yucs.org 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=&amp;>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:     richter@ecos.de          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: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message