Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Jan 21, 2014
1 parent 5af3da7 commit a8ea1c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Network/CakeResponse.php
Expand Up @@ -1271,7 +1271,7 @@ public function cors(CakeRequest $request, $allowedDomains, $allowedMethods = ar
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;
Expand All @@ -1289,7 +1289,7 @@ public function cors(CakeRequest $request, $allowedDomains, $allowedMethods = ar
* @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 === '*') {
Expand Down

0 comments on commit a8ea1c6

Please sign in to comment.