Package: libphp-simplepie
Version: 1.2-1

Trying to retrieve the URL for an enclosure of a media:content
element fails (returns null).  The following line is printed
trying to parse a RSS2 with MediaRSS stream:

PHP Notice:  Undefined variable: parsed in 
/usr/share/php/simplepie/simplepie.inc on line 6450

The fix is to define $parsed as a parsed version of $this->link:

--- /usr/share/php/simplepie/simplepie.inc      2009-10-29 10:42:59.000000000 
-0400
+++ simplepie.inc       2011-07-19 08:12:56.000000000 -0400
@@ -6447,6 +6447,7 @@
                $this->type = $type;
                $this->width = $width;
 
+               $parsed = SimplePie_Misc::parse_url($this->link);
                $this->link = 
SimplePie_Misc::compress_parse_url($parsed['scheme'], 
idn_to_utf8($parsed['authority']), $parsed['path'], $parsed['query'], 
$parsed['fragment']);
 
                $this->handler = $this->get_handler(); // Needs to load last

I haven't checked if this is missing anywhere else in the file,
however.

-- 
Matthew Wronka                              <mailto:[email protected]>
<sip:[email protected]><http://matt.wronka.org/><xmpp:[email protected]>
pgp key: http://matt.wronka.org/pgp/pgp.key       Short PGP FAQ:
http://www.pgp.net/pgpnet/pgp-faq/pgp-faq-general-questions.html



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to