Skip to content

Commit

Permalink
Force explicit char conversion on int before use
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterburnett committed Sep 12, 2023
1 parent 955da56 commit 806eb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public static function extract_http_headers(string $content) {
if (trim($line) === '') {
return false; // Cannot have empty lines.
}
if (ctype_space(ord($line))) {
if (ctype_space(chr(ord($line)))) {
$current .= $line;
} else {
if (!is_null($current)) {
Expand Down

0 comments on commit 806eb66

Please sign in to comment.