Skip to content

Commit 0189696

Browse files
committed
Clean httpmsg responses #205
1 parent 9e7c9f6 commit 0189696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/robot/crawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ public function scrape($url) {
12341234
// This code path will erroneously be triggered in the case of trailers. Not a big problem, especially not in
12351235
// the case of well-formed trailers. But we will then reset $httpmsg a bit too early.
12361236
if (preg_match('@^HTTP/[^ ]+ ([0-9]+) ([^\r\n]*)@', $header, $headerparts)) { // HTTP status-line.
1237-
$httpmsg = $headerparts[2];
1237+
$httpmsg = clean_param($headerparts[2], PARAM_TEXT);
12381238
} else {
12391239
$httpmsg = '';
12401240
}

0 commit comments

Comments
 (0)