Some big update
This commit is contained in:
@@ -89,7 +89,7 @@ class Service
|
||||
if (
|
||||
$params->getHost() &&
|
||||
!$this->addressUtil->isAllowedAddress($params) &&
|
||||
!$this->hostCheck->isNotInternalHost($params->getHost())
|
||||
!$this->hostCheck->isHostAndNotInternal($params->getHost())
|
||||
) {
|
||||
throw new Forbidden("Not allowed internal host.");
|
||||
}
|
||||
@@ -124,7 +124,7 @@ class Service
|
||||
if (
|
||||
$params->getHost() &&
|
||||
!$this->addressUtil->isAllowedAddress($params) &&
|
||||
!$this->hostCheck->isNotInternalHost($params->getHost())
|
||||
!$this->hostCheck->isHostAndNotInternal($params->getHost())
|
||||
) {
|
||||
throw new Forbidden("Not allowed internal host.");
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ class Service
|
||||
if (
|
||||
$params->getHost() &&
|
||||
!$this->addressUtil->isAllowedAddress($params) &&
|
||||
!$this->hostCheck->isNotInternalHost($params->getHost())
|
||||
!$this->hostCheck->isHostAndNotInternal($params->getHost())
|
||||
) {
|
||||
throw new Forbidden("Not allowed internal host.");
|
||||
}
|
||||
@@ -144,7 +144,7 @@ class Service
|
||||
if (
|
||||
$params->getHost() &&
|
||||
!$this->addressUtil->isAllowedAddress($params) &&
|
||||
!$this->hostCheck->isNotInternalHost($params->getHost())
|
||||
!$this->hostCheck->isHostAndNotInternal($params->getHost())
|
||||
) {
|
||||
throw new Forbidden("Not allowed host.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user