Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14414027
D13929.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
814 B
Referenced Files
None
Subscribers
None
D13929.diff
View Options
diff --git a/src/applications/owners/storage/PhabricatorOwnersPackage.php b/src/applications/owners/storage/PhabricatorOwnersPackage.php
--- a/src/applications/owners/storage/PhabricatorOwnersPackage.php
+++ b/src/applications/owners/storage/PhabricatorOwnersPackage.php
@@ -230,16 +230,19 @@
}
public static function splitPath($path) {
- $result = array('/');
$trailing_slash = preg_match('@/$@', $path) ? '/' : '';
$path = trim($path, '/');
$parts = explode('/', $path);
+
+ $result = array();
while (count($parts)) {
$result[] = '/'.implode('/', $parts).$trailing_slash;
$trailing_slash = '/';
array_pop($parts);
}
- return $result;
+ $result[] = '/';
+
+ return array_reverse($result);
}
public function attachPaths(array $paths) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 3:00 PM (11 h, 30 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6926841
Default Alt Text
D13929.diff (814 B)
Attached To
Mode
D13929: Fix Owners package specificity ordering
Attached
Detach File
Event Timeline
Log In to Comment