Created
September 19, 2009 15:48
-
-
Save mikl/6f18d6f62c763534028b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 42f36d83305a9645eec01c29fbb7c8b73a37ae79 Mon Sep 17 00:00:00 2001 | |
From: Mikkel Hoegh <mikkel@hoegh.org> | |
Date: Sat, 19 Sep 2009 17:48:17 +0200 | |
Subject: [PATCH] Using unescape to avoid parsing issues. | |
--- | |
disqus/templatetags/disqus_tags.py | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/disqus/templatetags/disqus_tags.py b/disqus/templatetags/disqus_tags.py | |
index 1b1bb18..e255ce6 100644 | |
--- a/disqus/templatetags/disqus_tags.py | |
+++ b/disqus/templatetags/disqus_tags.py | |
@@ -38,7 +38,7 @@ def disqus_num_replies(shortname=''): | |
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&'; | |
} | |
} | |
- document.write('<script type="text/javascript" src="http://disqus.com/forums/%s/get_num_replies.js' + query + '"></' + 'script>'); | |
+ document.write(unescape('%%3Cscript src="http://disqus.com/forums/%s/get_num_replies.js' + query + '" type='text/javascript'%%3E%%3C/script%%3E")); | |
})(); | |
//]]> | |
</script> | |
-- | |
1.6.4.2+GitX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment