aboutsummaryrefslogtreecommitdiffstats
path: root/include/reddav.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-16 20:34:21 -0700
committerfriendica <info@friendica.com>2014-03-16 20:34:21 -0700
commitecb2e52a7411a8a39b8030964604f0f28f2facce (patch)
treebbe36d04ddb359002cc0aa6976dd6a2c34d73747 /include/reddav.php
parent6f9fde997bd0d6c59045220a1afc2060b857c83a (diff)
downloadvolse-hubzilla-ecb2e52a7411a8a39b8030964604f0f28f2facce.tar.gz
volse-hubzilla-ecb2e52a7411a8a39b8030964604f0f28f2facce.tar.bz2
volse-hubzilla-ecb2e52a7411a8a39b8030964604f0f28f2facce.zip
little fixes of hopefully nil significance
Diffstat (limited to 'include/reddav.php')
-rw-r--r--include/reddav.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/reddav.php b/include/reddav.php
index 2a26ac42a..a39a84e21 100644
--- a/include/reddav.php
+++ b/include/reddav.php
@@ -708,7 +708,7 @@ function RedFileData($file, &$auth,$test = false) {
$r = q("select id, uid, hash, filename, filetype, filesize, revision, folder, flags, created, edited from attach
where folder = '%s' and filename = '%s' and uid = %d $perms group by filename limit 1",
dbesc($folder),
- basename($file),
+ dbesc(basename($file)),
intval($channel_id)
);
@@ -719,7 +719,7 @@ function RedFileData($file, &$auth,$test = false) {
$r = q("select id, uid, hash, filename, filetype, filesize, revision, folder, flags, created, edited from attach
where folder = '%s' and filename = '%s' and uid = %d group by filename limit 1",
dbesc($folder),
- basename($file),
+ dbesc(basename($file)),
intval($channel_id)
);
if($r)