]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 125013: ProcessMultipartFormFields in CGI.pl would hang if the posting...
authorjustdave%syndicomm.com <>
Sat, 20 Apr 2002 23:17:54 +0000 (23:17 +0000)
committerjustdave%syndicomm.com <>
Sat, 20 Apr 2002 23:17:54 +0000 (23:17 +0000)
Patch by tkl@telenet.ch (Thomas Klaeger)
2xr= justdave

CGI.pl

diff --git a/CGI.pl b/CGI.pl
index 93ed0fa2653d20dc2825f18c065c183ebe62b452..b7a513f2acb22a0b9952712f7e01e4ec351d357f 100644 (file)
--- 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$//;