Skip to content
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

Fix ambiguous pattern #24956

Merged
merged 1 commit into from Nov 17, 2017
Merged

Fix ambiguous pattern #24956

merged 1 commit into from Nov 17, 2017

Conversation

weltling
Copy link
Contributor

@weltling weltling commented Nov 13, 2017

[Validator][Constraints][UrlValidator] Fix domain name pattern.

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

\pS is a unicode character class, \pS-\. pretends to be a range which is not. This pattern fails with PCRE2.

Thanks.

@nicolas-grekas nicolas-grekas added this to the 2.7 milestone Nov 15, 2017
@nicolas-grekas
Copy link
Member

@weltling could you please update the PR description and change the licence to MIT?

@weltling
Copy link
Contributor Author

@nicolas-grekas done, fine with MIT here, too. That's probably why the check was failing :)

Thanks.

@nicolas-grekas
Copy link
Member

@weltling for sure, all green now, thanks!

@stof
Copy link
Member

stof commented Nov 17, 2017

Thank you @weltling.

@stof stof merged commit 059f59a into symfony:2.7 Nov 17, 2017
stof added a commit that referenced this pull request Nov 17, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

Fix ambiguous pattern

[Validator][Constraints][UrlValidator] Fix domain name pattern.

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

`\pS` is a unicode character class, `\pS-\.` pretends to be a range which is not. This pattern fails with PCRE2.

Thanks.

Commits
-------

059f59a Fix ambiguous pattern
This was referenced Nov 21, 2017
This was referenced Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants