Browse Source

SimplePie fix old regression during manual merge (#3568)

Bug from https://github.com/FreshRSS/FreshRSS/pull/2136
Related upstream PR https://github.com/simplepie/simplepie/pull/676
Alexandre Alapetite 5 years ago
parent
commit
150015079f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/SimplePie/SimplePie/Item.php

+ 1 - 0
lib/SimplePie/SimplePie/Item.php

@@ -2862,6 +2862,7 @@ class SimplePie_Item
 					$width = null;
 
 					$url = $this->sanitize($enclosure[0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($enclosure[0]));
+					$url = $this->feed->sanitize->https_url($url);
 					if (isset($enclosure[0]['attribs']['']['type']))
 					{
 						$type = $this->sanitize($enclosure[0]['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);