summaryrefslogtreecommitdiff
path: root/lang/perl5.8
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5.8')
-rw-r--r--lang/perl5.8/Makefile2
-rw-r--r--lang/perl5.8/files/patch-CGI.pm15
2 files changed, 16 insertions, 1 deletions
diff --git a/lang/perl5.8/Makefile b/lang/perl5.8/Makefile
index 8d4506aaece4..67a41d631857 100644
--- a/lang/perl5.8/Makefile
+++ b/lang/perl5.8/Makefile
@@ -7,7 +7,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VER}
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= lang devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
${MASTER_SITE_LOCAL:S/$/:local/} \
diff --git a/lang/perl5.8/files/patch-CGI.pm b/lang/perl5.8/files/patch-CGI.pm
new file mode 100644
index 000000000000..1af91639808f
--- /dev/null
+++ b/lang/perl5.8/files/patch-CGI.pm
@@ -0,0 +1,15 @@
+--- lib/CGI.pm.orig Tue Sep 30 10:17:22 2003
++++ lib/CGI.pm Tue Sep 30 10:20:20 2003
+@@ -1532,8 +1532,10 @@ sub startform {
+ $method = lc($method) || 'post';
+ $enctype = $enctype || &URL_ENCODED;
+ unless (defined $action) {
+- $action = $self->url(-absolute=>1,-path=>1);
+- $action .= "?$ENV{QUERY_STRING}" if $ENV{QUERY_STRING};
++ $action = $self->escapeHTML($self->url(-absolute=>1,-path=>1));
++ if (length($ENV{QUERY_STRING})>0) {
++ $action .= "?".$self->escapeHTML($ENV{QUERY_STRING},1);
++ }
+ }
+ $action = qq(action="$action");
+ my($other) = @other ? " @other" : '';