You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/06/28 15:55:46 UTC

svn commit: r551560 - /lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl

Author: andreas
Date: Thu Jun 28 06:55:45 2007
New Revision: 551560

URL: http://svn.apache.org/viewvc?view=rev&rev=551560
Log:
Don't strip the protocol from image URLs, see http://issues.apache.org/bugzilla/show_bug.cgi?id=42762#c10

Modified:
    lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl

Modified: lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl?view=diff&rev=551560&r1=551559&r2=551560
==============================================================================
--- lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl (original)
+++ lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl Thu Jun 28 06:55:45 2007
@@ -83,6 +83,9 @@
           <xsl:when test="starts-with(@src, '/')">
             <xsl:value-of select="@src"/>              
           </xsl:when>
+          <xsl:when test="starts-with(@src, 'http:') or starts-with(@src, 'https:')">
+            <xsl:value-of select="@src"/>              
+          </xsl:when>
           <xsl:otherwise>
             <xsl:value-of select="substring-after(@src, '/')"/>
           </xsl:otherwise>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org