]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
keep the ampersand in atlinks
authorEvan Prodromou <evan@prodromou.name>
Thu, 29 May 2008 17:36:35 +0000 (13:36 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 29 May 2008 17:36:35 +0000 (13:36 -0400)
darcs-hash:20080529173635-84dde-8152ddcd07e094f5478a470f5b1a3ea28ce5421e.gz

lib/util.php

index eac9ed9cc7b8790d704467e667b70b16f4fad1a6..0fa3178c89e3c6c1d6660b6e104926f2d4b4487b 100644 (file)
@@ -352,7 +352,7 @@ function common_canonical_email($email) {
 function common_render_content($text, $notice) {
        $r = htmlspecialchars($text);
        $id = $notice->profile_id;
-       $r = preg_replace('/(^|\s)@([\w-]+)($|\s)/e', "'\\1'.@common_at_link($id, '\\2').'\\3'", $r);
+       $r = preg_replace('/(^|\s)@([\w-]+)($|\s)/e', "'\\1@'.common_at_link($id, '\\2').'\\3'", $r);
        # XXX: # tags
        # XXX: machine tags
        return $r;