diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-29 23:32:03 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-29 23:32:03 +0200 |
commit | 085fdfec2f298fd89d0265d0f97edfdda5a12954 (patch) | |
tree | a5004ab03dfcec7fedf3acb009365517f72cf4ce /lib/util.php | |
parent | e2d3225e5aff343bf62b6dbb62eb3526e525cb6b (diff) | |
download | nextcloud-server-085fdfec2f298fd89d0265d0f97edfdda5a12954.tar.gz nextcloud-server-085fdfec2f298fd89d0265d0f97edfdda5a12954.zip |
adding unit tests for OC_Util::basename
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); } |