]> source.dussan.org Git - nextcloud-server.git/commitdiff
Security bug
authorHenrik Kjölhede <hkjolhede@gmail.com>
Sat, 9 Feb 2013 22:49:21 +0000 (23:49 +0100)
committerHenrik Kjölhede <hkjolhede@gmail.com>
Sat, 9 Feb 2013 22:49:21 +0000 (23:49 +0100)
apps/files_external/lib/sftp.php

index f3605c3aa2d61cfa3c5f06955478607fc2e67d7f..2f62a0ecf83971d0e29c3b80099ecfb0c0d4a1c6 100644 (file)
@@ -58,7 +58,7 @@ class SFTP extends OC\Files\Storage\Common {
        }
 
        private function abs_path($path) {
-               return $this->root . $path;
+               return $this->root . $this->cleanPath($path);
        }
 
        private function host_keys_path() {