aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/export
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-01-25 09:14:08 +0100
committerGravatar GitHub <noreply@github.com> 2025-01-25 09:14:08 +0100
commit22b74b0a5790360d81088a83addab1f98b7f7947 (patch)
tree2b08182a24cef248ac7ec9bb45c375cb33eb2f55 /app/views/helpers/export
parent68497030f988cac483a67b27b96d2ac90a54856e (diff)
Improve cURL proxy options (#7231)
3 is now used for CURLPROXY_HTTPS2 https://github.com/curl/curl/blob/f07612cd9ae1ec50b9bedd749171ad75203c9e7e/include/curl/curl.h#L789 Related to https://github.com/FreshRSS/FreshRSS/issues/7209
Diffstat (limited to 'app/views/helpers/export')
-rw-r--r--app/views/helpers/export/opml.phtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/helpers/export/opml.phtml b/app/views/helpers/export/opml.phtml
index 37e728470..fba6d2498 100644
--- a/app/views/helpers/export/opml.phtml
+++ b/app/views/helpers/export/opml.phtml
@@ -107,6 +107,9 @@ function feedsToOutlines(array $feeds, bool $excludeMutedFeeds = false): array {
$outline['frss:CURLOPT_POSTFIELDS'] = $curl_params[CURLOPT_POSTFIELDS] ?? null;
$outline['frss:CURLOPT_PROXY'] = $curl_params[CURLOPT_PROXY] ?? null;
$outline['frss:CURLOPT_PROXYTYPE'] = $curl_params[CURLOPT_PROXYTYPE] ?? null;
+ if ($outline['frss:CURLOPT_PROXYTYPE'] === 3) { // Legacy for NONE
+ $outline['frss:CURLOPT_PROXYTYPE'] = -1;
+ }
$outline['frss:CURLOPT_USERAGENT'] = $curl_params[CURLOPT_USERAGENT] ?? null;
if (!empty($curl_params[CURLOPT_HTTPHEADER]) && is_array($curl_params[CURLOPT_HTTPHEADER])) {