Does this help us?

> Revision history for Perl extension CGI::Untaint.
>
> 1.26  Tue Sep 20 22:13:21 UTC 2005
>         - allow 'printable' strings to be empty [Michael Reece]

I'm still not clear about the case where a form submission includes no
mention of a field, for instance a select dropdown where you don't
select anything. I think in that case, the form does not even submit
an empty field - it omits the field entirely from the submission. I
guess I need to write a test.

query: ?name=Dave&surname=

my $handler = CGI::Untaint->new( $q->Vars );

my $name      = $handler->extract(-as_printable => 'name');       # 'Dave'
my $surname = $handler->extract(-as_printable => 'surname');  # ''
my $title = $handler->extract(-as_printable => 'title');  # ??

d.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to