Rename dbesc to DBA::escape
This commit is contained in:
committed by
Hypolite Petovan
parent
d3a598f589
commit
a6fb3568f9
@@ -2,6 +2,7 @@
|
||||
/**
|
||||
* @file mod/match.php
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Widget;
|
||||
use Friendica\Core\Config;
|
||||
@@ -9,7 +10,6 @@ use Friendica\Core\L10n;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
require_once 'include/text.php';
|
||||
@@ -79,7 +79,7 @@ function match_content(App $a)
|
||||
$match = q(
|
||||
"SELECT `nurl` FROM `contact` WHERE `uid` = '%d' AND nurl='%s' LIMIT 1",
|
||||
intval(local_user()),
|
||||
dbesc($match_nurl)
|
||||
DBA::escape($match_nurl)
|
||||
);
|
||||
|
||||
if (!count($match)) {
|
||||
|
||||
Reference in New Issue
Block a user