We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4306eaa commit 5bdd75eCopy full SHA for 5bdd75e
app/Http/Middleware/HMACAuthorization.php
@@ -148,7 +148,7 @@ protected function validateRequest()
148
protected function validateIPAccess()
149
{
150
if (! is_null($this->key()->allowed_ips)) {
151
- foreach ($this->key()->allowed_ips as $ip) {
+ foreach (json_decode($this->key()->allowed_ips) as $ip) {
152
if (Range::parse($ip)->contains(new IP($this->request()->ip()))) {
153
return true;
154
}
0 commit comments