Fix for corruption problem under Apache
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@400 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
f72647a44c
commit
172fee0798
@ -112,11 +112,13 @@ sub getline {
|
||||
my $rc = $c->input_filters->get_brigade($bb, Apache::MODE_GETLINE);
|
||||
return if $rc == APR::EOF;
|
||||
die APR::Error::strerror($rc) unless $rc == APR::SUCCESS;
|
||||
|
||||
my $data = '';
|
||||
|
||||
while (!$bb->is_empty) {
|
||||
my $b = $bb->first;
|
||||
$b->remove;
|
||||
$b->read(my $data);
|
||||
$b->read(my $newdata);
|
||||
$data .= $newdata;
|
||||
return $data if index($data, "\n") >= 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user