Enclosures were not generated for Dilbert.com because the URL of the
picture are protocol-relative and curl cannot work with these URLs.
Fix the URLs by prepending a protocol schema to them.
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
<xsl:if test="$generate-enclosure = 1">
- <xsl:copy-of select="php:functionString('Tweeper\Tweeper::generateEnclosure', $picture-url)"/>
+ <!--
+ Dilbert.com uses protocol-relative urls for pictures but
+ generateEnclosure() relies on curl which cannot work
+ without a schema.
+
+ Use http as protocol because curl gives some error when
+ attempting TLS negotiation with the server where
+ Dilbert.com assets are.
+ -->
+ <xsl:copy-of select="php:functionString('Tweeper\Tweeper::generateEnclosure', concat('http:', $picture-url))"/>
</xsl:if>
</item>
</xsl:template>