From 9b318e4044c8ff27699d2294fbd780d04ad9c128 Mon Sep 17 00:00:00 2001 From: vrana Date: Tue, 28 Feb 2012 15:04:36 -0800 Subject: [PATCH] Respect username letter case in Remarkup Test Plan: Type ##@makinde## to comment, verify that it is converted to ##@Makinde##. Verify that ##@NonExistent## stays ##@NonExistent##. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1725 --- .../markuprule/mention/PhabricatorRemarkupRuleMention.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/infrastructure/markup/remarkup/markuprule/mention/PhabricatorRemarkupRuleMention.php b/src/infrastructure/markup/remarkup/markuprule/mention/PhabricatorRemarkupRuleMention.php index d6a4ae40fa..cd3ce046ab 100644 --- a/src/infrastructure/markup/remarkup/markuprule/mention/PhabricatorRemarkupRuleMention.php +++ b/src/infrastructure/markup/remarkup/markuprule/mention/PhabricatorRemarkupRuleMention.php @@ -1,7 +1,7 @@ $class, - 'href' => '/p/'.$username.'/', + 'href' => '/p/'.$actual_users[$username]['username'].'/', 'target' => '_blank', 'title' => $actual_users[$username]['realName'], ), - phutil_escape_html('@'.$username)); + phutil_escape_html('@'.$actual_users[$username]['username'])); foreach ($tokens as $token) { $engine->overwriteStoredText($token, $tag); }