From 8d135242d4a7241bd6ad70c6ec004a1dadd6e502 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Sat, 20 Apr 2002 23:17:54 +0000 Subject: 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 --- CGI.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CGI.pl') 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$//; -- cgit v1.2.3-24-g4f1b