Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removing repetitive strtoupper call.
  • Loading branch information
markstory committed Mar 2, 2011
1 parent e384195 commit 7891143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/libs/route/cake_route.php
Expand Up @@ -193,12 +193,13 @@ public function parse($url) {
} else {
$header = 'http_' . $header[1];
}
$header = strtoupper($header);

$val = (array)$val;
$h = false;

foreach ($val as $v) {
if (env(strtoupper($header)) === $v) {
if (env($header) === $v) {
$h = true;
}
}
Expand Down

0 comments on commit 7891143

Please sign in to comment.