diff options
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 004470908d1..7f7b9f334b4 100755 --- a/lib/util.php +++ b/lib/util.php @@ -895,6 +895,7 @@ class OC_Util { public static function basename($file) { + $file = rtrim($file, '/'); $t = explode('/', $file); return array_pop($t); } |