Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14838380
D15780.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15780.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15780: Fix Phriction link syntax a little more
Attached
Detach File
Event Timeline
Log In to Comment