diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-08 23:23:25 +0400 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-08 23:38:10 +0400 |
commit | b06f7a1e7880ab8305c93cbfbac937fe406c0839 (patch) | |
tree | a7255f031a7d2663ec8ebc702f3b099709eca30b /files_archive | |
parent | 0663eb55da507cfea73d01ce36f6f98b1b628654 (diff) |
Don't use substr to get first char of string
Diffstat (limited to 'files_archive')
-rw-r--r-- | files_archive/lib/storage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files_archive/lib/storage.php b/files_archive/lib/storage.php index b8f7d4683..867616636 100644 --- a/files_archive/lib/storage.php +++ b/files_archive/lib/storage.php @@ -18,7 +18,7 @@ class OC_Filestorage_Archive extends OC_Filestorage_Common{ private static $rootView; private function stripPath($path){//files should never start with / - if(substr($path,0,1)=='/'){ + if(!$path || $path[0]=='/'){ $path=substr($path,1); } return $path; |