Skip to content
Browse files

Merge pull request #37 from experience/patch-1

Disqus Snippet Chokes on Titles Containing Single Quotes
  • Loading branch information...
2 parents ebed77b + 1967daf commit 8dc50147981d376356888bf137a84d63823c9d72 @bastianallgeier committed Mar 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 snippets/disqus/disqus.php
View
4 snippets/disqus/disqus.php
@@ -7,7 +7,7 @@
if(!isset($disqus_identifier)) $disqus_identifier = $page->uri();
if(!isset($disqus_url)) $disqus_url = thisURL();
-// sanatize the developer setting
+$disqus_title = addcslashes($disqus_title, "'");
$disqus_developer = ($disqus_developer) ? 'true' : 'false';
?>
@@ -26,4 +26,4 @@
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
-<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>

0 comments on commit 8dc5014

Please sign in to comment.
Something went wrong with that request. Please try again.