Skip to content
Snippets Groups Projects
Commit 74cf3b5d authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

use normalizePath to have a proper target path

parent 4c707d1b
No related branches found
No related tags found
No related merge requests found
......@@ -65,9 +65,7 @@ if($source) {
$target=$dir.'/'.$filename;
$result=OC_Filesystem::file_put_contents($target, $sourceStream);
if($result) {
if($target[0] != '/') {
$target = '/'.$target;
}
$target = OC_Filesystem::normalizePath($target);
$meta = OC_FileCache::get($target);
$mime=$meta['mimetype'];
$id = OC_FileCache::getId($target);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment