mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed CS
This commit is contained in:
parent
5af3da7fe6
commit
a8ea1c6b55
1 changed files with 2 additions and 2 deletions
|
@ -1271,7 +1271,7 @@ class CakeResponse {
|
|||
return;
|
||||
}
|
||||
|
||||
$allowedDomains = $this->normalizeCorsDomains((array)$allowedDomains, $request->is('ssl'));
|
||||
$allowedDomains = $this->_normalizeCorsDomains((array)$allowedDomains, $request->is('ssl'));
|
||||
foreach ($allowedDomains as $domain) {
|
||||
if (!preg_match($domain['preg'], $origin)) {
|
||||
continue;
|
||||
|
@ -1289,7 +1289,7 @@ class CakeResponse {
|
|||
* @param boolean $requestIsSSL
|
||||
* @return array
|
||||
*/
|
||||
protected function normalizeCorsDomains($domains, $requestIsSSL = false) {
|
||||
protected function _normalizeCorsDomains($domains, $requestIsSSL = false) {
|
||||
$result = array();
|
||||
foreach ($domains as $domain) {
|
||||
if ($domain === '*') {
|
||||
|
|
Loading…
Reference in a new issue