Explorar el Código

Merge branch 'master' into v2.7.1

star7th hace 5 años
padre
commit
9c34ce9d93
Se han modificado 1 ficheros con 1 adiciones y 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 ';