Permalink
Browse files

Fixed blind trusting

  • Loading branch information...
jmather committed Oct 8, 2012
1 parent 727241b commit 21003857e321719bb9379d2013f1dac4e2b658fc
Showing with 1 addition and 1 deletion.
  1. +1 −1 UrlMatcher.php
View
@@ -27,7 +27,7 @@ protected function handleRouteRequirements($pathinfo, $name, BaseRoute $route)
if ($ret[0] == self::REQUIREMENT_MISMATCH)
return $ret;
- foreach($this->request->request->get('_accept') as $accept)
+ foreach($this->request->request->get('_accept', array()) as $accept)
{
if (preg_match('/^('.$route->getRequirement('_accept').')$/', $accept))
{

0 comments on commit 2100385

Please sign in to comment.