You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Philip Mak <pm...@aaanime.net> on 2001/06/13 09:31:17 UTC

Bug report: FormFill functionality

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


Re: Bug report: FormFill functionality

Posted by "T.J. Mather" <tj...@anidea.com>.
Hi Philip,

I'm having trouble reproducing the bug outside of 
Apache::ASP.  HTML::FillInForm should escape the double quotes.  Could you
post a small test script that shows the bug with 
HTML::FillInForm?  Thanks, TJ

> Philip Mak wrote:
> > 
> > Summary: HTML::FillInForm chokes if the value has double quotes in it.


--giaoaoloclladgkmjeen--
ReSent-Date: Fri, 29 Jun 2001 14:51:17 -0700 (PDT)
ReSent-From: Ask Bjoern Hansen <as...@valueclick.com>
ReSent-To:  <as...@perl.apache.org>
ReSent-Subject: Re: Bug report: FormFill functionality
ReSent-Message-ID: <Pi...@impatience.valueclick.com>

Hi Philip,

I'm having trouble reproducing the bug outside of 
Apache::ASP.  HTML::FillInForm should escape the double quotes.  Could you
post a small test script that shows the bug with 
HTML::FillInForm?  Thanks, TJ

> Philip Mak wrote:
> > 
> > Summary: HTML::FillInForm chokes if the value has double quotes in it.


--giaoaoloclladgkmjeen--


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


Re: Bug report: FormFill functionality

Posted by "T.J. Mather" <tj...@anidea.com>.
Hi Philip,

I'm having trouble reproducing the bug outside of 
Apache::ASP.  HTML::FillInForm should escape the double quotes.  Could you
post a small test script that shows the bug with 
HTML::FillInForm?  Thanks, TJ

> Philip Mak wrote:
> > 
> > Summary: HTML::FillInForm chokes if the value has double quotes in it.


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


Re: Bug report: FormFill functionality

Posted by Joshua Chamas <jo...@chamas.com>.
The bug you describe below has to do with the way 
HTML::FillInForm works.  I have cc'd the author TJ Mather 
on this email.  This might really have to do with the 
way HTML::Parser works.

Also note, Apache::ASP 2.15 has just been released, which
works under perl 5.6.1 just as 2.09 does.

--Josh

Philip Mak wrote:
> 
> 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