mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
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
This commit is contained in:
parent
fe05a63736
commit
9b318e4044
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* Copyright 2011 Facebook, Inc.
|
||||
* Copyright 2012 Facebook, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -108,11 +108,11 @@ class PhabricatorRemarkupRuleMention
|
|||
'a',
|
||||
array(
|
||||
'class' => $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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue