From f8eee44714ebbaa748947ee460516bf6ec70549e Mon Sep 17 00:00:00 2001 From: Oren Me Date: Sun, 8 Nov 2020 10:44:59 +0200 Subject: [PATCH] fix: headerCallback location trim value is incorrect --- simplePhpXMLProxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplePhpXMLProxy.php b/simplePhpXMLProxy.php index 7ee4032815..133d62a68c 100644 --- a/simplePhpXMLProxy.php +++ b/simplePhpXMLProxy.php @@ -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; }