Skip to content
Permalink
Browse files

Explicitly casting to string a variable that could in times be either…

… string or integer
  • Loading branch information...
lorenzo committed Jan 12, 2012
1 parent c029316 commit c53f0e6877899221169a576dd6311bfa69530ea7
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Routing/Route/CakeRoute.php
@@ -185,6 +185,7 @@ public function parse($url) {
return false;
}
foreach ($this->defaults as $key => $val) {
$key = (string) $key;
if ($key[0] === '[' && preg_match('/^\[(\w+)\]$/', $key, $header)) {
if (isset($this->_headerMap[$header[1]])) {
$header = $this->_headerMap[$header[1]];

0 comments on commit c53f0e6

Please sign in to comment.
You can’t perform that action at this time.