]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
silly escape problem with quotes, fixed.
authormillette <millette@controlyourself.ca>
Fri, 14 Nov 2008 17:32:42 +0000 (12:32 -0500)
committermillette <millette@controlyourself.ca>
Fri, 14 Nov 2008 17:32:42 +0000 (12:32 -0500)
darcs-hash:20081114173242-099f7-7cc37f036cc564ecde029bfce00b313eb047232c.gz

lib/util.php

index 242419af0399890590b8ff8f3a71fe82da3f84a5..7940f683e90e51f6c4313cf6c4a8f9952164b5e1 100644 (file)
@@ -761,7 +761,7 @@ function common_longurl($uri)  {
 }
 
 function common_shorten_links($text) {
-       $r = htmlspecialchars($text);
+       $r = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
     // \s = not a horizontal whitespace character (since PHP 5.2.4)
        // RYM this should prevent * preceded URLs from being processed but it its a char
 //     $r = preg_replace('@[^*](https?://[^)\]>\s]+)@e', "common_shorten_link('\\1')", $r);