1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +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:
vrana 2012-02-28 15:04:36 -08:00
parent fe05a63736
commit 9b318e4044

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright 2011 Facebook, Inc. * Copyright 2012 Facebook, Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -108,11 +108,11 @@ class PhabricatorRemarkupRuleMention
'a', 'a',
array( array(
'class' => $class, 'class' => $class,
'href' => '/p/'.$username.'/', 'href' => '/p/'.$actual_users[$username]['username'].'/',
'target' => '_blank', 'target' => '_blank',
'title' => $actual_users[$username]['realName'], 'title' => $actual_users[$username]['realName'],
), ),
phutil_escape_html('@'.$username)); phutil_escape_html('@'.$actual_users[$username]['username']));
foreach ($tokens as $token) { foreach ($tokens as $token) {
$engine->overwriteStoredText($token, $tag); $engine->overwriteStoredText($token, $tag);
} }