perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Luettgert <>
Subject RE: No quoting of " (&quot;) ?
Date Thu, 02 Dec 2004 16:03:08 GMT
On Do, 2004-12-02 at 06:25, Gerald Richter wrote:
> > 
> > [- $fdat{'foo'} = '"><a 
> > href="">slashdot</a>'; -] <input 
> > type="text" name="foo">
> > 
> > This results in an empty text field followed by the given 
> > link to slashdot. 
> I just tested it and it works for me.
> What you your setting of $escmode?

I have escmode and input_escmode both set to zero, since I often
print tags from perl code. And yes, it works if I change the
example to
[- $escmode = 7; $fdat{'foo'} = ... etc etc -]

I wasn't aware that the escmode also applies to the (automatic)
value-setting by %fdat. I also doubt that is a good thing, since
Embperl "knows" that escaping is needed here. I cannot imagine why
anyone would want to have escmode 0 applied to value="..."

So do I need to set $escmode to 7 around the tags which have values
auto-assigned from %fdat? That's quite an inconvenience.
I tried adding it to the syntax, but it didn't work. Perhaps
the auto-value-adding could be changed so it overrides the escmode?

Torsten LĆ¼ttgert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message