mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
Auth: Protect User::setDomain() from empty strings
This commit is contained in:
parent
b397b01966
commit
d05a262819
@ -379,7 +379,11 @@ class User
|
||||
*/
|
||||
public function setDomain($domain)
|
||||
{
|
||||
$this->domain = $domain;
|
||||
$domain = trim($domain);
|
||||
|
||||
if (strlen($domain)) {
|
||||
$this->domain = $domain;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user