We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0dad50b + 6c5af22 commit ee18bf3Copy full SHA for ee18bf3
interface/lib/classes/remoting_lib.inc.php
@@ -127,6 +127,10 @@ function loadUserProfile($client_id_param = 0) {
127
$_SESSION["s"]["user"]["typ"] = 'admin';
128
} else {
129
$user = $app->db->queryOneRecord("SELECT * FROM sys_user WHERE client_id = ?", $this->client_id);
130
+ if(empty($user)) {
131
+ throw new SoapFault('invalid_client_id', 'Invalid client_id '.$this->client_id);
132
+ return false;
133
+ }
134
$this->sys_username = $user['username'];
135
$this->sys_userid = $user['userid'];
136
$this->sys_default_group = $user['default_group'];
0 commit comments