Respect cookie domain config in Cookie.php

refs #11187
This commit is contained in:
Eric Lippmann 2016-02-27 22:19:37 +01:00
parent 923e902957
commit 5f642879c7

View File

@ -96,6 +96,9 @@ class Cookie
*/ */
public function getDomain() public function getDomain()
{ {
if ($this->domain === null) {
$this->domain = Config::app()->get('cookie', 'domain');
}
return $this->domain; return $this->domain;
} }