perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Mak <p...@aaanime.net>
Subject [IDEA] Automatic URL Encoding
Date Sun, 10 Jun 2001 08:24:21 GMT
Is it practical/efficient for Apache::ASP to automatically scan <A HREF>
tags?

I had an idea about an automatic URL Encoding option. The idea is that
someone types "PerlSetVar URLEncode 1" in their httpd.conf. Then,
Apache::ASP will automatically call $Server->URLEncode() on every <A HREF>
tag.

Applications that generate a lot of GET URLs would benefit from this, e.g.
instead of:

<a href="program.asp?param1=<%=$Server->URLEncode($param1)%>&amp;param2=<%=$Server->URLEncode($param2)">

one could then write:

<a href="program.asp?param1=<%=$param1%>&param2=<%=$param2%>">

-Philip Mak (pmak@aaanime.net)


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message