From: justdave%syndicomm.com <> Date: Sat, 20 Apr 2002 23:17:54 +0000 (+0000) Subject: Fix for bug 125013: ProcessMultipartFormFields in CGI.pl would hang if the posting... X-Git-Tag: bugzilla-2.16rc1~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d135242d4a7241bd6ad70c6ec004a1dadd6e502;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/CGI.pl b/CGI.pl index 93ed0fa265..b7a513f2ac 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$//;