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

make sure path starts with /

parent 78922040
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,9 @@ if($source) {
$target=$dir.'/'.$filename;
$result=OC_Filesystem::file_put_contents($target, $sourceStream);
if($result) {
if($target[0] != '/') {
$target = '/'.$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.
Finish editing this message first!
Please register or to comment