in reply to Re: Escaping %params
in thread Escaping %params
The output is when I pass test.pl?a=\'b is:use warnings; use strict; use CGI; use Data::Dumper; print "Content-type: text/html\n\n"; my $cgi = CGI->new(); my %params = map { $_ => $cgi->param($_) || '' } $cgi->param; print Dumper \%params;
... so it looks like something in the stack is already taking care of the escaping for me. Am I worrying about nothing?$VAR1 = { 'a' => '\\\'b' };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Escaping %params
by tangent (Parson) on Jan 21, 2014 at 01:48 UTC | |
|
Re^3: Escaping %params (perl-escaping / html-escaping
by Anonymous Monk on Jan 21, 2014 at 02:46 UTC | |
|
Re^3: Escaping %params
by AnomalousMonk (Archbishop) on Jan 21, 2014 at 23:27 UTC |