replaced substr with trim

remotes/origin/stable6
Christian Berendt 13 years ago
parent adf0fe880c
commit 0bc28dcb95
  1. 8
      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 = '.';

Loading…
Cancel
Save