From ee175dd6169a016fc898fac62d046e22c205dec0 Mon Sep 17 00:00:00 2001 From: Eris <36680203+printfuck@users.noreply.github.com> Date: Sat, 16 Jan 2021 16:32:18 -0500 Subject: CURLOPT parameters per feed (#3367) * Working curlopt_params * Examples * curl_params for fetching the article * cleanup * clarification * Remove debugging * Options corrected * Removed Debugging * i18n not needed (right now) * Translations and UI rework * Checks in update.phtml * Unset Proxy&Cookies * remove clutter * minor fuckup * i18n added properly * resolve Errors * linting errors * linting errors, again * Review * Minor revert * Minor i18n: de Co-authored-by: maru Co-authored-by: Aeris Co-authored-by: Alexandre Alapetite --- lib/lib_rss.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index aaa644faf..d734f722c 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -187,6 +187,11 @@ function customSimplePie($attributes = array()) { $curl_options[CURLOPT_SSL_CIPHER_LIST] = 'DEFAULT@SECLEVEL=1'; } } + if (!empty($attributes['curl_params']) && is_array($attributes['curl_params'])) { + foreach ($attributes['curl_params'] as $co => $v) { + curl_setopt($ch, $co, $v); + } + } $simplePie->set_curl_options($curl_options); $simplePie->strip_comments(true); -- cgit v1.2.3