Merge pull request #5719 from annando/notices-yeah
[friendica.git/.git] / mod / attach.php
index a04fba9..99f0fc4 100644 (file)
@@ -32,7 +32,7 @@ function attach_init(App $a)
        // Now we'll see if we can access the attachment
 
        $r = q("SELECT * FROM `attach` WHERE `id` = '%d' $sql_extra LIMIT 1",
-               dbesc($item_id)
+               DBA::escape($item_id)
        );
 
        if (!DBA::isResult($r)) {