mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +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)
|
public function setDomain($domain)
|
||||||
{
|
{
|
||||||
|
$domain = trim($domain);
|
||||||
|
|
||||||
|
if (strlen($domain)) {
|
||||||
$this->domain = $domain;
|
$this->domain = $domain;
|
||||||
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user