protect from sql injection

This commit is contained in:
redmatrix 2015-09-02 15:52:54 -07:00
parent 3647b74d33
commit 2a26c898ca
2 changed files with 2 additions and 2 deletions

View File

@ -1663,7 +1663,7 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $
$ab = q("select * from abook where abook_channel = %d and abook_xchan = '%s'",
intval($channel['channel_id']),
$arr['owner_xchan']
dbesc($arr['owner_xchan'])
);
$abook = (($ab) ? $ab[0] : null);

View File

@ -1 +1 @@
2015-09-01.1142
2015-09-02.1143