Fix for bug 125013: ProcessMultipartFormFields in CGI.pl would hang if the…

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
parent 963bbf79
......@@ -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$//;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment