aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2014-03-18 02:41:58 +0000
committerThomas Willingham <founder@kakste.com>2014-03-18 02:41:58 +0000
commit1446cc80960d278d26a2c2a0a529728beed10215 (patch)
tree6d2cc43912e719603cba8ee4db4381890245adba /include
parentaa07edbdd107b512caf5a83d863c9d79a6e46694 (diff)
downloadvolse-hubzilla-1446cc80960d278d26a2c2a0a529728beed10215.tar.gz
volse-hubzilla-1446cc80960d278d26a2c2a0a529728beed10215.tar.bz2
volse-hubzilla-1446cc80960d278d26a2c2a0a529728beed10215.zip
Missed one
Diffstat (limited to 'include')
-rw-r--r--include/reddav.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/reddav.php b/include/reddav.php
index d6c3d126b..c65cb569b 100644
--- a/include/reddav.php
+++ b/include/reddav.php
@@ -276,7 +276,7 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota {
for($x = 1; $x < count($path_arr); $x ++) {
- $r = q("select id, hash, filename, flags from attach where folder = '%s' and filename = '%s' and uid = %d and (flags & %d)",
+ $r = q("select id, hash, filename, flags from attach where folder = '%s' and filename = '%s' and uid = '%d' and (flags & %d)",
dbesc($folder),
dbesc($path_arr[$x]),
intval($channel_id),
@@ -581,9 +581,10 @@ function RedCollectionData($file,&$auth) {
for($x = 1; $x < count($path_arr); $x ++) {
- $r = q("select id, hash, filename, flags from attach where folder = '%s' and filename = '%s' and (flags & %d) $perms limit 1",
+ $r = q("select id, hash, filename, flags from attach where folder = '%s' and filename = '%s' and uid = %d and (flags & %d) $perms limit 1",
dbesc($folder),
dbesc($path_arr[$x]),
+ intval($channel_id),
intval(ATTACH_FLAG_DIR)
);
if(! $r) {