зеркало из https://github.com/mozilla/gecko-dev.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
This commit is contained in:
Родитель
69b81b0423
Коммит
c5175bd35f
|
@ -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$//;
|
||||
|
|
Загрузка…
Ссылка в новой задаче