diff options
author | millette <millette@controlyourself.ca> | 2008-11-14 12:32:42 -0500 |
---|---|---|
committer | millette <millette@controlyourself.ca> | 2008-11-14 12:32:42 -0500 |
commit | 0e7541e9dabc14804b7f1ddbac6f7456940eb9f8 (patch) | |
tree | 18c6e465364eb11fbfcb0beddbf9236499b8b71e | |
parent | 10383a3211d0b0864a9719c9c3468616447b5c8c (diff) |
silly escape problem with quotes, fixed.
darcs-hash:20081114173242-099f7-7cc37f036cc564ecde029bfce00b313eb047232c.gz
-rw-r--r-- | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 242419af0..7940f683e 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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); |