Page MenuHomePhabricator

D13929.diff
No OneTemporary

D13929.diff

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

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)

Event Timeline