aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-06 20:34:23 -0800
committerzotlabs <mike@macgirvin.com>2016-12-06 20:34:23 -0800
commit641e9ff50811a993a2486f8b1c37e3235c64da1f (patch)
treefcb5670ad472aefca1eab17ca5a745c7b79f95c2 /include/attach.php
parentabb045e1ffc73cded20df613933b2c68a76cf9c1 (diff)
downloadvolse-hubzilla-641e9ff50811a993a2486f8b1c37e3235c64da1f.tar.gz
volse-hubzilla-641e9ff50811a993a2486f8b1c37e3235c64da1f.tar.bz2
volse-hubzilla-641e9ff50811a993a2486f8b1c37e3235c64da1f.zip
api files improvements/fixes and documentation
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index ac0185f5d..504601b55 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -197,10 +197,10 @@ function attach_list_files($channel_id, $observer, $hash = '', $filename = '', $
$sql_extra .= protect_sprintf(" and hash = '" . dbesc($hash) . "' ");
if($filename)
- $sql_extra .= protect_sprintf(" and filename like '@" . dbesc($filename) . "@' ");
+ $sql_extra .= protect_sprintf(" and filename like '%" . dbesc($filename) . "%' ");
if($filetype)
- $sql_extra .= protect_sprintf(" and filetype like '@" . dbesc($filetype) . "@' ");
+ $sql_extra .= protect_sprintf(" and filetype like '%" . dbesc($filetype) . "%' ");
if($entries)
$limit = " limit " . intval($start) . ", " . intval(entries) . " ";