Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8c83f16

Browse filesBrowse files
committed
Merge pull request symfony#3 from uwej711/fix_route_renaming
routes' names are very restrictive
2 parents d03c793 + 2265f3f commit 8c83f16
Copy full SHA for 8c83f16

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎DoctrineRouter.php

Copy file name to clipboardExpand all lines: DoctrineRouter.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function match($url)
190190
$collection = new RouteCollection();
191191

192192
foreach ($routes as $key => $route) {
193-
$collection->add(self::ROUTE_NAME_PREFIX.str_replace('/', '_', $key), $route);
193+
$collection->add(self::ROUTE_NAME_PREFIX.preg_replace('/[^a-z0-9A-Z_.]/', '_', $key), $route);
194194
}
195195

196196
$defaults = $this->getMatcher($collection)->match($url);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.