perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Mak <p...@aaanime.net>
Subject Bug report: FormFill functionality
Date Wed, 13 Jun 2001 07:31:17 GMT
Summary: HTML::FillInForm chokes if the value has double quotes in it.

Minimal script to cause problem:

<%
$Response->{FormFill} = 1;
my $test = '"This string is quoted."';
%>
<form>
<input type="text" size=40 value="<%=$Server->HTMLEncode($test)%>">
</form>

This is in Apache::ASP 2.09 (I can't use 2.11 since I haven't had a free
afternoon to upgrade from perl 5.00503 to perl 5.6.1 then fix everything
that broke). HTML::FillInForm version is 0.13.

The output of the script is this:

<form>
<input type="text" size="40" value=""This string is quoted."">
</form>

If I turn off FormFill, its output is correct:

<form>
<input type="text" size=40 value="&quot;This string is quoted.&quot;">
</form>

-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