diff options
author | friendica <info@friendica.com> | 2014-03-18 16:50:46 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-18 16:50:46 -0700 |
commit | 8c177fbc4b20c297afbd7035dbb5e59d94fb4020 (patch) | |
tree | 534ced0ada038c99bd466082494546feca0cffd9 /include/reddav.php | |
parent | c8fb979ed86403bc38baaf92c90f299434b25fdf (diff) | |
download | volse-hubzilla-8c177fbc4b20c297afbd7035dbb5e59d94fb4020.tar.gz volse-hubzilla-8c177fbc4b20c297afbd7035dbb5e59d94fb4020.tar.bz2 volse-hubzilla-8c177fbc4b20c297afbd7035dbb5e59d94fb4020.zip |
cleanup
Diffstat (limited to 'include/reddav.php')
-rw-r--r-- | include/reddav.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/reddav.php b/include/reddav.php index 1047bdc9e..b7bb94fa0 100644 --- a/include/reddav.php +++ b/include/reddav.php @@ -590,9 +590,10 @@ function RedCollectionData($file,&$auth) { if(! $r) { // path wasn't found. Try without permissions to see if it was the result of permissions. $errors = true; - $r = q("select id, hash, filename, flags from attach where folder = '%s' and filename = '%s' and (flags & %d) limit 1", + $r = q("select id, hash, filename, flags from attach where folder = '%s' and filename = '%s' and uid = %d and (flags & %d) limit 1", dbesc($folder), basename($path_arr[$x]), + intval($channel_id), intval(ATTACH_FLAG_DIR) ); if($r) { |