Page MenuHomePhabricator

D15780.diff
No OneTemporary

D15780.diff

diff --git a/src/applications/phriction/markup/PhrictionRemarkupRule.php b/src/applications/phriction/markup/PhrictionRemarkupRule.php
--- a/src/applications/phriction/markup/PhrictionRemarkupRule.php
+++ b/src/applications/phriction/markup/PhrictionRemarkupRule.php
@@ -85,6 +85,9 @@
}
$slugs = ipull($metadata, 'link');
+ foreach ($slugs as $key => $slug) {
+ $slugs[$key] = PhabricatorSlug::normalize($slug);
+ }
// We have to make two queries here to distinguish between
// documents the user can't see, and documents that don't
@@ -115,14 +118,14 @@
if (idx($existant_documents, $slug) === null) {
// The target document doesn't exist.
if ($name === null) {
- $name = explode('/', trim($slug, '/'));
+ $name = explode('/', trim($link, '/'));
$name = end($name);
}
$class = 'phriction-link-missing';
} else if (idx($visible_documents, $slug) === null) {
// The document exists, but the user can't see it.
if ($name === null) {
- $name = explode('/', trim($slug, '/'));
+ $name = explode('/', trim($link, '/'));
$name = end($name);
}
$class = 'phriction-link-lock';

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 1, 3:19 PM (11 h, 17 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7082142
Default Alt Text
D15780.diff (1 KB)

Event Timeline