tweeper.php: fix a problem with https URLs ending up in the enclosure element
authorAntonio Ospite <ao2@ao2.it>
Mon, 23 May 2016 13:32:27 +0000 (15:32 +0200)
committerAntonio Ospite <ao2@ao2.it>
Mon, 23 May 2016 13:32:27 +0000 (15:32 +0200)
commit60ffa4f7f61cb8c815244644c633d84646d21104
tree5c16bf54fa43ab5c739a8612d245b64179e89f99
parent47350899b24fb9a79bd9f57bcabc7281b9a01e34
tweeper.php: fix a problem with https URLs ending up in the enclosure element

When the remote host forces every URLs to be redirected to https, the
info returned by Tweeper::getUrlInfo() would contain an https URL, which
will end up being used in the "url" attribute of the enclosure element,
and this is invalid according to the RSS specification.

So make sure that an http URL is actually used for the "url" attribute.
tweeper.php