Commit d6ac3fc7 authored by Mario's avatar Mario
Browse files

files_ng: only fetch what we need

parent eb2ad3fc
Pipeline #367165 passed with stage
in 3 minutes and 30 seconds
......@@ -214,7 +214,7 @@ class Browser extends DAV\Browser\Plugin {
$photo_icon = '';
$preview_style = intval(get_config('system','thumbnail_security',0));
$r = q("select * from attach where hash = '%s' and uid = %d limit 1",
$r = q("SELECT content, creator, hash, revision, allow_cid, allow_gid, deny_cid, deny_gid FROM attach WHERE hash = '%s' AND uid = %d",
dbesc($attachHash),
intval($owner)
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment