From 1522f7f21185d2f3d3b5edebaa09f3e2f3a454aa Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 14 Aug 2012 03:07:14 +0200 Subject: fix some minor problems with path noramlization --- lib/filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/filesystem.php') 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 -- cgit v1.2.3