Browse Source

break if a matching trusted host is found

fix for https://github.com/yiisoft/yii2/pull/13780#discussion_r134186910
thanks to @krukru !

PR #13780
tags/2.0.13
Carsten Brandt 7 years ago
parent
commit
9e713dba29
No known key found for this signature in database
GPG Key ID: BE4F41DE1DEEEED0
  1. 2
      framework/web/Request.php

2
framework/web/Request.php

@ -292,7 +292,7 @@ class Request extends \yii\base\Request
}
if (preg_match($hostRegex, $host) || preg_match($hostRegex, $ip)) {
$trustedHeaders = $headers;
continue;
break;
}
}
}

Loading…
Cancel
Save