diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-07 15:22:26 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-07 15:22:26 -0800 |
commit | 07706b41f46a726257d8c86beb7ced664d3a7ab7 (patch) | |
tree | 6ec94f07d2c63cd55ec2f598cae1278a2b6b9121 /include | |
parent | 346a48d4c238d39c358cbac2a29f29a173b0ea7e (diff) | |
download | volse-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.php | 4 |
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]; |