Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15399814
D13316.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
D13316.diff
View Options
diff --git a/src/applications/phriction/controller/PhrictionMoveController.php b/src/applications/phriction/controller/PhrictionMoveController.php
--- a/src/applications/phriction/controller/PhrictionMoveController.php
+++ b/src/applications/phriction/controller/PhrictionMoveController.php
@@ -36,13 +36,14 @@
// about it.
if (strlen($v_slug)) {
$normal_slug = PhabricatorSlug::normalize($v_slug);
- if ($normal_slug !== $v_slug) {
+ $no_slash_slug = rtrim($normal_slug, '/');
+ if ($normal_slug !== $v_slug && $no_slash_slug !== $v_slug) {
return $this->newDialog()
->setTitle(pht('Adjust Path'))
->appendParagraph(
pht(
'The path you entered (%s) is not a valid wiki document '.
- 'path. Paths may not contain special characters.',
+ 'path. Paths may not contain spaces or special characters.',
phutil_tag('strong', array(), $v_slug)))
->appendParagraph(
pht(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 7:52 AM (4 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223750
Default Alt Text
D13316.diff (1 KB)
Attached To
Mode
D13316: Phriction - improve workflow for when user entered slug needs to be normalized.
Attached
Detach File
Event Timeline
Log In to Comment