Skip to content

Commit

Permalink
fix: headerCallback location trim value is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenMe authored Nov 8, 2020
1 parent 79d4355 commit f8eee44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplePhpXMLProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function isValidHost( $url = null ){

function headerCallback($ch, $header) {
if (strpos(strtolower($header), 'location:') !== false) {
$url = trim(substr(trim($header), 10));
$url = trim(substr(trim($header), 9));
if (!isValidHost($url))
return 0;
}
Expand Down

0 comments on commit f8eee44

Please sign in to comment.