MDL-28569 blocks/rss_client - RSS feed autodiscovery fails with ampersands
authorDan Poltawski <dan.poltawski@luns.net.uk>
Tue, 2 Aug 2011 12:18:05 +0000 (13:18 +0100)
committerSam Hemelryk <sam@moodle.com>
Mon, 8 Aug 2011 06:11:13 +0000 (14:11 +0800)
Simpliepie is quoting urls and we need the url to be unescaped

blocks/rss_client/editfeed.php

index 38eeb48..5711917 100644 (file)
@@ -140,7 +140,9 @@ class feed_edit_form extends moodleform {
                 return $url;
             }
 
                 return $url;
             }
 
-            return $rss->subscribe_url();
+            // return URL without quoting..
+            $discoveredurl = new moodle_url($rss->subscribe_url());
+            return $discoveredurl->out(false);
     }
 }
 
     }
 }