Page MenuHomePhabricator

D8542.id.diff
No OneTemporary

D8542.id.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
Thu, Oct 17, 6:20 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712588
Default Alt Text
D8542.id.diff (985 B)

Event Timeline