Skip to content

Commit

Permalink
tested cross-site scripting issues and believe that there are none
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Aug 29, 2003
1 parent be54430 commit 7d7abb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CGI.pm
Expand Up @@ -18,8 +18,8 @@ use Carp 'croak';
# The most recent version and complete docs are available at:
# http://stein.cshl.org/WWW/software/CGI/

$CGI::revision = '$Id: CGI.pm,v 1.131 2003-08-18 21:57:28 lstein Exp $
$CGI::VERSION='3.00';
$CGI::revision = '$Id: CGI.pm,v 1.132 2003-08-29 16:40:03 lstein Exp $';
$CGI::VERSION=3.00;

# HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
# UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING.
Expand Down Expand Up @@ -1639,6 +1639,7 @@ sub startform {
$method = lc($method) || 'post';
$enctype = $enctype || &URL_ENCODED;
unless (defined $action) {
$action = $self->escapeHTML($self->url(-absolute=>1,-path=>1));
if (length($ENV{QUERY_STRING})>0) {
$action .= "?".$self->escapeHTML($ENV{QUERY_STRING},1);
Expand Down

0 comments on commit 7d7abb3

Please sign in to comment.