Bug in Podcast plugin
Posted: Mon Sep 26, 2005 4:49 pm
Hello people,
there is a bug in the Podcast plugin v1.10 (serendipity_event_podcast.php) that makes it render enclosure tags incorrectly.
Example:
The enclosure tag is then looking like this:
The regex for media link recognition is flawed and this is the cure:
Thanks for your attention.
Rene Schmidt
there is a bug in the Podcast plugin v1.10 (serendipity_event_podcast.php) that makes it render enclosure tags incorrectly.
Example:
Code: Select all
Im Netz gibt es recht viel kostenlose Musik: man muss nur wissen, wo sie zu finden ist. Allerdings ist das meiste davon nicht nach meinem Geschmack und vieles davon nicht gut produziert.
Eine Ausnahme ist die "Swiss Circus in Stereo"-Compilation von <a href="http://www.alpinechic.net">alpinechic.net</a>. Eine Vorstellung der Zusammenstellung ist auf Phlow.net verfuegbar - dort ist dann auch der Link zum Download zu finden: <a href="http://www.phlow.net/arc/001251.php">www.Phlow.net</a>
Anspieltipp: <a href="http://www.alpinechic.net/ac/mp3/ac011-01_env-world.mp3">World von Env</a>
Code: Select all
<enclosure url="http://www.alpinechic.net">alpinechic.net</a>. Eine Vorstellung der Zusammenstellung ist auf Phlow.net verfuegbar – dort ist dann auch der Link zum Download zu finden: <a href="http://www.phlow.net/arc/001251.php">www.Phlow.net</a></p>
<p>Anspieltipp: <a href="http://www.alpinechic.net/ac/mp3/ac011-01_env-world.mp3" type="audio/mp3" />
Code: Select all
189c189
< $mediaLinkPattern = '@href\s*=\s*(\'|")(.+\.(' . implode('|', array_keys($this->mediaFileTypes)) . '))\1@Usie';
---
> $mediaLinkPattern = '@href\s*=\s*(\'|")([^>]+\.(' . implode('|', array_keys($this->mediaFileTypes)) . '))\1@Usie';
Rene Schmidt