Fixed digg/reddit/etc... buttons so that they encode url properly.
This commit is contained in:
parent
e9d9d40458
commit
93393c5658
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue