mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
SimplePie force HTTPS, another approach
https://github.com/FreshRSS/FreshRSS/issues/1083
This commit is contained in:
1 parent
4a9a7404bc
commit
74ef8d9b15
2 files changed
+3
-2
No files matched your search
@@ -97,7 +97,7 @@ class SimplePie_Misc
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return SimplePie_Misc::https_url($iri->get_uri());
|
||||
return $iri->get_uri();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -451,7 +451,8 @@ class SimplePie_Sanitize
|
||||
if ($element->hasAttribute($attribute))
|
||||
{
|
||||
$value = $this->registry->call('Misc', 'absolutize_url', array($element->getAttribute($attribute), $this->base));
|
||||
if ($value !== false)
|
||||
$value = SimplePie_Misc::https_url($value); //FreshRSS
|
||||
if ($value)
|
||||
{
|
||||
$element->setAttribute($attribute, $value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user