From 6b27d6ff03008fcb9ba2c9b100f9948ea12b877f Mon Sep 17 00:00:00 2001 From: joshdentremont Date: Tue, 21 Jan 2025 11:06:19 -0400 Subject: [PATCH] follow redirects in curl --- admin/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/functions.php b/admin/functions.php index 9622437..13b6f1f 100644 --- a/admin/functions.php +++ b/admin/functions.php @@ -102,6 +102,7 @@ function rest_get($req) $cURLConnection = curl_init(); curl_setopt($cURLConnection, CURLOPT_URL, $protocol . $_SERVER['HTTP_HOST'] . $req); curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true); + curl_setopt($cURLConnection, CURLOPT_FOLLOWLOCATION, true); $result = curl_exec($cURLConnection);