Skip to content

[Security] fixed a dot in a regex #3169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 9, 2013
Merged

[Security] fixed a dot in a regex #3169

merged 2 commits into from
Nov 9, 2013

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