perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Williams" <>
Subject I admit....
Date Mon, 25 Nov 2002 04:01:15 GMT
I admit that my legacy embperl code really sucks. Unfortunately there's
thousands of lines of it and I have angry customers who are waiting for the
upgrade to be complete, so I am asking for something more than criticism of
old code... Is there a way for my old crappy code to work under Embperl2c
and Apache 2.0x?

At 8:12 PM -0500 11/24/02, David Williams wrote:
><a href=><img src=/images/cstore.gif
><a href="http" ://><img src /images/cstore.gif
>which is un-renderable.

However it is in fact a perfect representation of what you had.
According to the HTML spec, your href value ended at the colon after
http.  Even if Embperl didn't rewrite the URL, it wouldn't properly
escape any variables you put it in, because it's extremely invalid
HTML.  You really need to quote those URLs if you want them to work
properly.  Some browsers may be lenient about it, but I wouldn't want
to gamble on it for all of them.

One of the big benefits of Embperl is it's ability to parse your HTML
and take care of a lot of automatic things (filling in forms, looping
on table rows...).  But that does mean that you have to make sure
your HTML is correct so that it can parse it.

Kee Hinckley - Somewhere.Com, LLC

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

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

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

View raw message