Merge pull request #5478 from MrPetovan/task/5410-add-missing-use-statements
[friendica.git/.git] / mod / wallmessage.php
index 5ab01e3..5606b6f 100644 (file)
@@ -26,7 +26,7 @@ function wallmessage_post(App $a) {
        }
 
        $r = q("select * from user where nickname = '%s' limit 1",
-               dbesc($recipient)
+               DBA::escape($recipient)
        );
 
        if (! DBA::isResult($r)) {
@@ -88,7 +88,7 @@ function wallmessage_content(App $a) {
        }
 
        $r = q("select * from user where nickname = '%s' limit 1",
-               dbesc($recipient)
+               DBA::escape($recipient)
        );
 
        if (! DBA::isResult($r)) {