aboutsummaryrefslogtreecommitdiffstats
path: root/include/reddav.php
diff options
context:
space:
mode:
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)