mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-15 18:53:57 -04:00
Fix undefined array key CURLOPT_PROXY (#8218)
> PHP Warning: Undefined array key 10004 in ./FreshRSS/app/Utils/httpUtil.php on line 276
This commit is contained in:
committed by
GitHub
parent
b6314bee31
commit
9050598b08
@@ -273,7 +273,7 @@ final class FreshRSS_http_Util {
|
||||
$proxy = is_string(FreshRSS_Context::systemConf()->curl_options[CURLOPT_PROXY] ?? null) ? FreshRSS_Context::systemConf()->curl_options[CURLOPT_PROXY] : '';
|
||||
if (is_array($attributes['curl_params'] ?? null)) {
|
||||
$options = self::sanitizeCurlParams($attributes['curl_params']);
|
||||
$proxy = is_string($options[CURLOPT_PROXY]) ? $options[CURLOPT_PROXY] : '';
|
||||
$proxy = is_string($options[CURLOPT_PROXY] ?? null) ? $options[CURLOPT_PROXY] : '';
|
||||
if (is_array($options[CURLOPT_HTTPHEADER] ?? null)) {
|
||||
// Remove headers problematic for security
|
||||
$options[CURLOPT_HTTPHEADER] = array_filter($options[CURLOPT_HTTPHEADER],
|
||||
|
||||
Reference in New Issue
Block a user