| @@ 3315-3322 (lines=8) @@ | ||
| 3312 | if ($degzdata = @gzinflate($data)) { |
|
| 3313 | $data = $degzdata; |
|
| 3314 | $this->debug('The payload has been inflated to ' . strlen($data) . ' bytes'); |
|
| 3315 | if (strlen($data) < $datalen) { |
|
| 3316 | // test for the case that the payload has been compressed twice |
|
| 3317 | $this->debug('The inflated payload is smaller than the gzipped one; try again'); |
|
| 3318 | if ($degzdata = @gzinflate($data)) { |
|
| 3319 | $data = $degzdata; |
|
| 3320 | $this->debug('The payload has been inflated again to ' . strlen($data) . ' bytes'); |
|
| 3321 | } |
|
| 3322 | } |
|
| 3323 | } else { |
|
| 3324 | $this->debug('Error using gzinflate to inflate the payload'); |
|
| 3325 | $this->setError('Error using gzinflate to inflate the payload'); |
|
| @@ 3331-3338 (lines=8) @@ | ||
| 3328 | if ($degzdata = @gzinflate(substr($data, 10))) { // do our best |
|
| 3329 | $data = $degzdata; |
|
| 3330 | $this->debug('The payload has been un-gzipped to ' . strlen($data) . ' bytes'); |
|
| 3331 | if (strlen($data) < $datalen) { |
|
| 3332 | // test for the case that the payload has been compressed twice |
|
| 3333 | $this->debug('The un-gzipped payload is smaller than the gzipped one; try again'); |
|
| 3334 | if ($degzdata = @gzinflate(substr($data, 10))) { |
|
| 3335 | $data = $degzdata; |
|
| 3336 | $this->debug('The payload has been un-gzipped again to ' . strlen($data) . ' bytes'); |
|
| 3337 | } |
|
| 3338 | } |
|
| 3339 | } else { |
|
| 3340 | $this->debug('Error using gzinflate to un-gzip the payload'); |
|
| 3341 | $this->setError('Error using gzinflate to un-gzip the payload'); |
|