diff options
author | Christian Berendt <berendt@b1-systems.de> | 2013-07-08 11:14:47 +0200 |
---|---|---|
committer | Christian Berendt <berendt@b1-systems.de> | 2013-07-08 11:14:47 +0200 |
commit | 0bc28dcb954e6f1b945ef08b9c8ea9a2df0d6e97 (patch) | |
tree | 7c43d8140402d3afd20dd04b5009891cdb2359b7 /apps/files_external/lib | |
parent | adf0fe880c6adcdfdabc6aa8f3ccfb267c4692b6 (diff) | |
download | nextcloud-server-0bc28dcb954e6f1b945ef08b9c8ea9a2df0d6e97.tar.gz nextcloud-server-0bc28dcb954e6f1b945ef08b9c8ea9a2df0d6e97.zip |
replaced substr with trim
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/amazons3.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index c8f85c50155..1c92dfa9995 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -38,13 +38,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { private static $tmpFiles = array(); private function normalizePath($path) { - if (substr($path, 0, 1) == '/') { - $path = substr($path, 1); - } - - if (substr($path, -1) == '/') { - $path = substr($path, 0, -1); - } + $path = trim($path, '/'); if ( ! $path) { $path = '.'; |