From 02b6ced8955cd5b773e958cd12f586b69933b84f Mon Sep 17 00:00:00 2001 From: Manuel Hiebel Date: Tue, 5 Sep 2023 22:16:29 +0200 Subject: Update simplepie to try to fix mga#32236 --- lib/simplepie/library/SimplePie/File.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/simplepie/library/SimplePie/File.php') diff --git a/lib/simplepie/library/SimplePie/File.php b/lib/simplepie/library/SimplePie/File.php index c326ba26a..7f894fb59 100644 --- a/lib/simplepie/library/SimplePie/File.php +++ b/lib/simplepie/library/SimplePie/File.php @@ -106,7 +106,7 @@ class SimplePie_File curl_setopt($fp, CURLOPT_FAILONERROR, 1); curl_setopt($fp, CURLOPT_TIMEOUT, $timeout); curl_setopt($fp, CURLOPT_CONNECTTIMEOUT, $timeout); - curl_setopt($fp, CURLOPT_REFERER, $url); + curl_setopt($fp, CURLOPT_REFERER, SimplePie_Misc::url_remove_credentials($url)); curl_setopt($fp, CURLOPT_USERAGENT, $useragent); curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2); foreach ($curl_options as $curl_param => $curl_value) { @@ -299,3 +299,5 @@ class SimplePie_File } } } + +class_alias('SimplePie_File', 'SimplePie\File', false); -- cgit v1.2.1