From ab6aa0ad3e471d2306ae2beca3c138026950893f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Sep 2020 09:18:24 +0300 Subject: [PATCH] fix previous re: resolve_redirects --- classes/urlhelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/urlhelper.php b/classes/urlhelper.php index c57d0b9d9..a83d10a5b 100644 --- a/classes/urlhelper.php +++ b/classes/urlhelper.php @@ -120,7 +120,7 @@ class UrlHelper { if (stripos($header, 'Location:') === 0) { $url = UrlHelper::rewrite_relative($url, trim(substr($header, strlen('Location:')))); - return resolve_redirects($url, $timeout, $nest + 1); + return UrlHelper::resolve_redirects($url, $timeout, $nest + 1); } } @@ -404,7 +404,7 @@ class UrlHelper { $old_error = error_get_last(); - $fetch_effective_url = resolve_redirects($url, $timeout ? $timeout : FILE_FETCH_CONNECT_TIMEOUT); + $fetch_effective_url = UrlHelper::resolve_redirects($url, $timeout ? $timeout : FILE_FETCH_CONNECT_TIMEOUT); if (!UrlHelper::validate($fetch_effective_url, true)) { $fetch_last_error = "URL received after redirection failed extended validation.";