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…
Reference in New Issue