aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-07 15:22:26 -0800
committerzotlabs <mike@macgirvin.com>2016-12-07 15:22:26 -0800
commit07706b41f46a726257d8c86beb7ced664d3a7ab7 (patch)
tree6ec94f07d2c63cd55ec2f598cae1278a2b6b9121 /include
parent346a48d4c238d39c358cbac2a29f29a173b0ea7e (diff)
downloadvolse-hubzilla-07706b41f46a726257d8c86beb7ced664d3a7ab7.tar.gz
volse-hubzilla-07706b41f46a726257d8c86beb7ced664d3a7ab7.tar.bz2
volse-hubzilla-07706b41f46a726257d8c86beb7ced664d3a7ab7.zip
document the api filedata call
Diffstat (limited to 'include')
-rw-r--r--include/api_zot.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/api_zot.php b/include/api_zot.php
index bdbed6a5f..d9895fae0 100644
--- a/include/api_zot.php
+++ b/include/api_zot.php
@@ -157,9 +157,9 @@
$start = (($_REQUEST['start']) ? intval($_REQUEST['start']) : 0);
$length = (($_REQUEST['length']) ? intval($_REQUEST['length']) : 0);
- $r = q("select * from attach where uid = %d and hash = '%s' limit 1",
+ $r = q("select * from attach where uid = %d and hash like '%s' limit 1",
intval(api_user()),
- dbesc($_REQUEST['file_id'])
+ dbesc($_REQUEST['file_id'] . '%')
);
if($r) {
$ptr = $r[0];