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
This commit is contained in:
justdave%syndicomm.com 2002-04-20 16:17:54 +00:00
Родитель 69b81b0423
Коммит c5175bd35f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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$//;