Page MenuHomePhabricator

D8542.id20269.diff
No OneTemporary

D8542.id20269.diff

diff --git a/src/infrastructure/markup/rule/PhabricatorRemarkupRuleObject.php b/src/infrastructure/markup/rule/PhabricatorRemarkupRuleObject.php
--- a/src/infrastructure/markup/rule/PhabricatorRemarkupRuleObject.php
+++ b/src/infrastructure/markup/rule/PhabricatorRemarkupRuleObject.php
@@ -42,17 +42,10 @@
protected function renderObjectRef($object, $handle, $anchor, $id) {
$href = $handle->getURI();
$text = $this->getObjectNamePrefix().$id;
+
if ($anchor) {
- $matches = null;
- if (preg_match('@^(?:comment-)?(\d{1,7})$@', $anchor, $matches)) {
- // Maximum length is 7 because 12345678 could be a file hash in
- // Differential.
- $href = $href.'#comment-'.$matches[1];
- $text = $text.'#'.$matches[1];
- } else {
- $href = $href.'#'.$anchor;
- $text = $text.'#'.$anchor;
- }
+ $href = $href.'#'.$anchor;
+ $text = $text.'#'.$anchor;
}
if ($this->getEngine()->isTextMode()) {

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 7:35 AM (6 d, 20 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712588
Default Alt Text
D8542.id20269.diff (985 B)

Event Timeline