[library-web] Do not alter FTP links (GNOME bug 623495)
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Do not alter FTP links (GNOME bug 623495)
- Date: Sun, 4 Jul 2010 15:04:52 +0000 (UTC)
commit d4d0f1d0cd138343cc50d969765c2db99be27876
Author: Frédéric Péters <fpeters 0d be>
Date: Sun Jul 4 17:03:47 2010 +0200
Do not alter FTP links (GNOME bug 623495)
data/xslt/html2html.xsl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/xslt/html2html.xsl b/data/xslt/html2html.xsl
index 279b686..303f04a 100644
--- a/data/xslt/html2html.xsl
+++ b/data/xslt/html2html.xsl
@@ -83,7 +83,7 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
<xsl:template match="@href" mode="gtk-doc">
<xsl:attribute name="href">
<xsl:choose>
- <xsl:when test="starts-with(., 'http://library.gnome.org/devel/') or not(starts-with(., 'http://'))">
+ <xsl:when test="starts-with(., 'http://library.gnome.org/devel/') or (not(starts-with(., 'http://')) and not(starts-with(., 'ftp://')))">
<xsl:choose>
<xsl:when test="contains(., '/gobject/stable/')">
<xsl:value-of select="concat('../../gobject/stable/', substring-after(., '/gobject/stable/'))"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]