summaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-08-14 03:07:14 +0200
committerRobin Appelman <icewind@owncloud.com>2012-08-14 03:07:14 +0200
commit1522f7f21185d2f3d3b5edebaa09f3e2f3a454aa (patch)
tree3593ddacb42a33ed90673c684cf93b7922d3b6e1 /lib/filesystem.php
parent0c8ce0bb32c4a79c248e71533f9fa00b844049fb (diff)
downloadnextcloud-server-1522f7f21185d2f3d3b5edebaa09f3e2f3a454aa.tar.gz
nextcloud-server-1522f7f21185d2f3d3b5edebaa09f3e2f3a454aa.zip
fix some minor problems with path noramlization
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 221345332b0..6cba6b1b547 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -503,7 +503,7 @@ class OC_Filesystem{
$path='/'.$path;
}
//remove trainling slash
- if(substr($path,-1,1)==='/'){
+ if(strlen($path)>1 and substr($path,-1,1)==='/'){
$path=substr($path,0,-1);
}
//remove duplicate slashes