Permalink
Browse files

Fixed CS

  • Loading branch information...
1 parent 5af3da7 commit a8ea1c6b55e29c2241403c56d706f3d2a75f7465 @jrbasso jrbasso committed Jan 21, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Network/CakeResponse.php
@@ -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;
@@ -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 === '*') {

0 comments on commit a8ea1c6

Please sign in to comment.