From 07706b41f46a726257d8c86beb7ced664d3a7ab7 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 7 Dec 2016 15:22:26 -0800 Subject: document the api filedata call --- include/api_zot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/api_zot.php') 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]; -- cgit v1.2.3