]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove the leading slash from the filename for opendir
authorMichael Gapczynski <mtgap@owncloud.com>
Mon, 11 Feb 2013 22:55:44 +0000 (17:55 -0500)
committerMichael Gapczynski <mtgap@owncloud.com>
Mon, 11 Feb 2013 22:55:44 +0000 (17:55 -0500)
apps/files_external/lib/google.php

index 7396c7e3f2795dfdaabf3faa22cf6a0904c5bcc1..f9bd4075f3eb5db0c125b38d05e970bfd9f1a2bf 100644 (file)
@@ -268,7 +268,7 @@ class Google extends \OC\Files\Storage\Common {
                                                $name .= '.'.$extension;
                                        }
                                }
-                               $files[] = $name;
+                               $files[] = basename($name);
                                // Cache entry for future use
                                $this->entries[$name] = $entry;
                        }