From b6eca948ade13bd5e0776794dd9840b1ff43ddb2 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 1 Jan 2021 15:25:58 +0100 Subject: fixed upstream news syndication --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index cca24ce..2f28d55 100644 --- a/index.php +++ b/index.php @@ -93,8 +93,9 @@ if ($news_reachable == 'YES') { $news32 = false; } -$ch = curl_init("https://www.archlinux.org/feeds/news/"); +$ch = curl_init("https://archlinux.org/feeds/news/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); +curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); $news64 = curl_exec($ch); curl_close($ch); $news64 = simplexml_load_string($news64); -- cgit v1.2.3