Page MenuHomePhabricator

D13316.id32229.diff
No OneTemporary

D13316.id32229.diff

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

Mime Type
text/plain
Expires
Fri, Sep 20, 2:53 AM (9 h, 37 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6622286
Default Alt Text
D13316.id32229.diff (1 KB)

Event Timeline