star7th %!s(int64=5) %!d(string=hai) anos
pai
achega
c2ee2171c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/Application/Api/Controller/UserController.class.php

+ 1 - 1
server/Application/Api/Controller/UserController.class.php

@@ -267,8 +267,8 @@ class UserController extends BaseController {
         $uid = $login_user['uid'] ;
         $username = I("username");
         $field = "username as value" ;
-        $username = \SQLite3::escapeString($username) ;
         if ($username) {
+            $username = \SQLite3::escapeString($username) ;
             $where = " username like '%{$username}%'" ;
         }else{
             $where = ' 1 = 1 ';