Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-07-30 01:32:03 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-07-30 01:32:03 +0400
commit085fdfec2f298fd89d0265d0f97edfdda5a12954 (patch)
treea5004ab03dfcec7fedf3acb009365517f72cf4ce /lib/util.php
parente2d3225e5aff343bf62b6dbb62eb3526e525cb6b (diff)
adding unit tests for OC_Util::basename
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php1
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);
}