We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e7c9f6 commit 0189696Copy full SHA for 0189696
classes/robot/crawler.php
@@ -1234,7 +1234,7 @@ public function scrape($url) {
1234
// This code path will erroneously be triggered in the case of trailers. Not a big problem, especially not in
1235
// the case of well-formed trailers. But we will then reset $httpmsg a bit too early.
1236
if (preg_match('@^HTTP/[^ ]+ ([0-9]+) ([^\r\n]*)@', $header, $headerparts)) { // HTTP status-line.
1237
- $httpmsg = $headerparts[2];
+ $httpmsg = clean_param($headerparts[2], PARAM_TEXT);
1238
} else {
1239
$httpmsg = '';
1240
}
0 commit comments