Skip to content

Conversation

bamarni
Copy link
Contributor

@bamarni bamarni commented Nov 7, 2013

Q A
Doc fix? yes
New docs? no
Applies to 2.2+

The current code works, but the dot should still be escaped to make it clear that this directive takes a regex.

@@ -809,7 +809,7 @@ Take the following ``access_control`` entries as an example:
array(
'path' => '^/admin',
'role' => 'ROLE_USER_HOST',
'host' => 'symfony.com',
'host' => 'symfony\\.com',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a single \ here too

@wouterj
Copy link
Member

wouterj commented Nov 7, 2013

Could you please add the PR template?

weaverryan added a commit that referenced this pull request Nov 9, 2013
[Security] fixed a dot in a regex
@weaverryan weaverryan merged commit 613cbbd into symfony:2.2 Nov 9, 2013
@weaverryan
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants