mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #1157 from samsonasik/rem-isset-host
remove unneeded isset($options[hostname]) when next check is !empty($options[hostname])
This commit is contained in:
commit
b612bf1bbe
@ -1173,7 +1173,7 @@ class RouteCollection implements RouteCollectionInterface
|
||||
$options = array_merge((array)$this->currentOptions, (array)$options);
|
||||
|
||||
// Hostname limiting?
|
||||
if (isset($options['hostname']) && ! empty($options['hostname']))
|
||||
if (! empty($options['hostname']))
|
||||
{
|
||||
// @todo determine if there's a way to whitelist hosts?
|
||||
if (strtolower($_SERVER['HTTP_HOST']) != strtolower($options['hostname']))
|
||||
|
Loading…
x
Reference in New Issue
Block a user