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 7096ce4

Browse filesBrowse files
author
Emmanuel BORGES
committed
cs fix
1 parent 10e454a commit 7096ce4
Copy full SHA for 7096ce4

File tree

2 files changed

+2
-6
lines changed
Filter options

2 files changed

+2
-6
lines changed

‎src/Symfony/Component/Validator/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CHANGELOG
88
* added UATP cards support to `CardSchemeValidator`
99
* added option `allowNull` to NotBlank constraint
1010
* added `Json` constraint
11-
* Add the `allowBrackets` options from the `Url` constraint to allow brackets in the optional query string.
11+
* added the `allowBrackets` options from the `Url` constraint to allow brackets in the optional query string.
1212

1313
4.2.0
1414
-----

‎src/Symfony/Component/Validator/Constraints/UrlValidator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/UrlValidator.php
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ public function validate($value, Constraint $constraint)
6464

6565
$pattern = static::PATTERN;
6666
if ($constraint->allowBrackets) {
67-
$pattern = str_replace(
68-
'(?:\? (?:[\pL\pN\-._\~!$&\'()*+,;=:@/?]|%%[0-9A-Fa-f]{2})* )?',
69-
'(?:\? (?:[\pL\pN\-._\~!$&\'\[\]()*+,;=:@/?]|%%[0-9A-Fa-f]{2})* )?',
70-
$pattern
71-
);
67+
$pattern = str_replace('(?:\? (?:[\pL\pN\-._\~!$&\'()*+,;=:@/?]|%%[0-9A-Fa-f]{2})* )?', '(?:\? (?:[\pL\pN\-._\~!$&\'\[\]()*+,;=:@/?]|%%[0-9A-Fa-f]{2})* )?', $pattern);
7268
}
7369

7470
$pattern = $constraint->relativeProtocol ? str_replace('(%s):', '(?:(%s):)?', $pattern) : $pattern;

0 commit comments

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