|
@@ -17,7 +17,7 @@ discard block |
|
|
block discarded – undo |
|
17
|
17
|
if ($response instanceof ContentTypeAwareResponse) { |
|
18
|
18
|
|
|
19
|
19
|
// @todo this could be part of the StandardRule class |
|
20
|
|
- $body = (string)$response->getBody(); |
|
|
20
|
+ $body = (string) $response->getBody(); |
|
21
|
21
|
$body = preg_replace('/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F,\xFF,\x8B]/', '', $body); |
|
22
|
22
|
|
|
23
|
23
|
if (($response->getStatusCode() < 300 || $response->getStatusCode() >= 400) |
|
@@ -25,7 +25,7 @@ discard block |
|
|
block discarded – undo |
|
25
|
25
|
&& strlen($body) > 0 |
|
26
|
26
|
) { |
|
27
|
27
|
if (stripos($body, '</html>') === false) { |
|
28
|
|
- throw new ValidationFailedException('Closing html tag is missing (document length: ' . strlen($body) . ').'); |
|
|
28
|
+ throw new ValidationFailedException('Closing html tag is missing (document length: '.strlen($body).').'); |
|
29
|
29
|
} |
|
30
|
30
|
} |
|
31
|
31
|
} |
Please login to merge, or discard this patch.