X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fping.php;h=4c4bc81ac1de7bc6827ac88a022c0d49f5a3dd5c;hb=a6fb3568f989f72164b435baafc63a174397b542;hp=11968eec75164ec96c15ca6b0e700a14575bf3f9;hpb=ecea7425f8ad11ace4af39d476919e3203bff44f;p=friendica.git diff --git a/mod/ping.php b/mod/ping.php index 11968eec75..4c4bc81ac1 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -197,7 +197,7 @@ function ping_init(App $a) "SELECT `id`, `from-name`, `from-url`, `from-photo`, `created` FROM `mail` WHERE `uid` = %d AND `seen` = 0 AND `from-url` != '%s' ", intval(local_user()), - dbesc($myurl) + DBA::escape($myurl) ); $mail_count = count($mails); @@ -221,8 +221,8 @@ function ping_init(App $a) WHERE `event`.`uid` = %d AND `start` < '%s' AND `finish` > '%s' and `ignore` = 0 ORDER BY `start` ASC ", intval(local_user()), - dbesc(DateTimeFormat::utc('now + 7 days')), - dbesc(DateTimeFormat::utcNow()) + DBA::escape(DateTimeFormat::utc('now + 7 days')), + DBA::escape(DateTimeFormat::utcNow()) ); if (DBA::isResult($ev)) { Cache::set($cachekey, $ev, CACHE_HOUR); @@ -481,8 +481,8 @@ function ping_get_notifications($uid) q( "UPDATE `notify` SET `name_cache` = '%s', `msg_cache` = '%s' WHERE `id` = %d", - dbesc($notification["name"]), - dbesc($notification["message"]), + DBA::escape($notification["name"]), + DBA::escape($notification["message"]), intval($notification["id"]) ); }