Permalink
Browse files

Escape single quotes in page title

  • Loading branch information...
1 parent ebed77b commit 1967dafe1907a7085e05bbd9447a64c6937e55d2 Stephen Lewis committed Mar 2, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 1967daf

Please sign in to comment.