aboutsummaryrefslogtreecommitdiff
path: root/app/Services/ImportService.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-05-08 21:01:49 +0200
committerGravatar GitHub <noreply@github.com> 2024-05-08 21:01:49 +0200
commitfa731db2861fef5cd0911a1566bed4328a12ab78 (patch)
tree84a31f9a79cc3ac808b8fd57df11626a1095585d /app/Services/ImportService.php
parentea2bcf3a5d879286350c6ad60872f94f46c6fffb (diff)
Fix OPML import CURLOPT_PROXYTYPE (#6439)
fix https://github.com/FreshRSS/FreshRSS/issues/6438
Diffstat (limited to 'app/Services/ImportService.php')
-rw-r--r--app/Services/ImportService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php
index 4555969ef..2c23e5d4f 100644
--- a/app/Services/ImportService.php
+++ b/app/Services/ImportService.php
@@ -284,7 +284,7 @@ class FreshRSS_Import_Service {
$curl_params[CURLOPT_PROXY] = $feed_elt['frss:CURLOPT_PROXY'];
}
if (isset($feed_elt['frss:CURLOPT_PROXYTYPE'])) {
- $curl_params[CURLOPT_PROXYTYPE] = $feed_elt['frss:CURLOPT_PROXYTYPE'];
+ $curl_params[CURLOPT_PROXYTYPE] = (int)$feed_elt['frss:CURLOPT_PROXYTYPE'];
}
if (isset($feed_elt['frss:CURLOPT_USERAGENT'])) {
$curl_params[CURLOPT_USERAGENT] = $feed_elt['frss:CURLOPT_USERAGENT'];