Fixed digg/reddit/etc... buttons so that they encode url properly.

This commit is contained in:
David Bartley 2007-08-12 16:27:28 -04:00
parent e9d9d40458
commit 93393c5658
1 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@
<xsl:param name="infotext" />
<xsl:param name="mirror" />
<xsl:param name="bittorrent" />
<xsl:variable name="realurl" select="fn:encode-for-uri(concat('http://csclub.uwaterloo.ca/media/', @title, '.html'))" />
<xsl:variable name="realurl" select="concat('http://csclub.uwaterloo.ca/media/', fn:encode-for-uri(@title), '.html')" />
<xsl:result-document method="xml" encoding="ISO-8859-1"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
@ -107,7 +107,7 @@
<!-- reddit button -->
<script type="text/javascript">
reddit_url = '<xsl:value-of select="$realurl" />';
reddit_title = '<xsl:value-of select="@title" />';
reddit_title = '<xsl:value-of select="fn:encode-for-uri(@title)" />';
</script>
<script src="http://reddit.com/button.js?t=3"
type="text/javascript"><xsl:text> </xsl:text></script>