simplepie: fix fatal error with php 8.2 - issue is filed upstream but probably will not be fixed any time soon

This commit is contained in:
Mario
2023-11-07 08:28:42 +00:00
parent 331622309f
commit 798f791b6b

View File

@@ -316,6 +316,10 @@ class Sanitize implements RegistryAware
*/
protected function is_https_domain($domain)
{
// https://github.com/simplepie/simplepie/issues/852
$domain = (string) $domain;
$domain = trim($domain, '. ');
$segments = array_reverse(explode('.', $domain));
$node =& $this->https_domains;