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 2400e71

Browse filesBrowse files
author
Adam Szaraniec
committed
use strict compare in url validator
1 parent fb88119 commit 2400e71
Copy full SHA for 2400e71

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/UrlValidator.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function validate($value, Constraint $constraint)
9292
Url::CHECK_DNS_TYPE_SOA,
9393
Url::CHECK_DNS_TYPE_SRV,
9494
Url::CHECK_DNS_TYPE_TXT,
95-
))) {
95+
), true)) {
9696
throw new InvalidOptionsException(sprintf('Invalid value for option "checkDNS" in constraint %s', get_class($constraint)), array('checkDNS'));
9797
}
9898

0 commit comments

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