summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2002-04-21 01:17:54 +0200
committerjustdave%syndicomm.com <>2002-04-21 01:17:54 +0200
commit8d135242d4a7241bd6ad70c6ec004a1dadd6e502 (patch)
treef242b6158bd0b757e501f0c1139e84fc3ca2681a /CGI.pl
parent963bbf79535bb4b18c7f33901154de11e62dc529 (diff)
downloadbugzilla-8d135242d4a7241bd6ad70c6ec004a1dadd6e502.tar.gz
bugzilla-8d135242d4a7241bd6ad70c6ec004a1dadd6e502.tar.xz
Fix for bug 125013: ProcessMultipartFormFields in CGI.pl would hang if the posting browser included regexp metacharacters in its boundary string.
Patch by tkl@telenet.ch (Thomas Klaeger) 2xr= justdave
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/CGI.pl b/CGI.pl
index 93ed0fa26..b7a513f2a 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -191,7 +191,7 @@ sub ProcessMultipartFormFields {
# If the current input line is a boundary line, save the previous
# form value and reset the storage variables.
- if ($_ =~ m/^-*$boundary/) {
+ if ($_ =~ m/^-*\Q$boundary\E/) {
if ( $fieldname ) {
chomp($fieldvalue);
$fieldvalue =~ s/\r$//;