|
|
@@ -390,6 +390,11 @@ function customSimplePie(array $attributes = [], array $curl_options = []): \Sim
|
|
|
if (is_array($force)) {
|
|
|
$https_domains = array_merge($https_domains, $force);
|
|
|
}
|
|
|
+
|
|
|
+ // Remove whitespace and comments starting with # / ;
|
|
|
+ $https_domains = preg_replace('%\\s+|[\/#;].*$%', '', $https_domains) ?? $https_domains;
|
|
|
+ $https_domains = array_filter($https_domains, fn(string $v) => $v !== '');
|
|
|
+
|
|
|
$simplePie->set_https_domains($https_domains);
|
|
|
return $simplePie;
|
|
|
}
|