From 0c5280fa75bd237afd179b50961cee2de8e8e32a Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 5 Nov 2014 02:37:26 +0100 Subject: [PATCH] Route: removed check for parameter name --- src/Application/Routers/Route.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Application/Routers/Route.php b/src/Application/Routers/Route.php index 9dc0b3a21..e2a96a878 100644 --- a/src/Application/Routers/Route.php +++ b/src/Application/Routers/Route.php @@ -542,11 +542,6 @@ private function setMask($mask, array $metadata) continue; } - // check name (limitation by regexp) - if (preg_match('#[^a-z0-9_-]#i', $name)) { - throw new Nette\InvalidArgumentException("Parameter name must be alphanumeric string due to limitations of PCRE, '$name' given."); - } - // pattern, condition & metadata if ($class !== '') { if (!isset(static::$styles[$class])) {