Skip to content

Commit

Permalink
Revert "[5.2] Typo Update UrlRule.php (#44227)" (#44234)
Browse files Browse the repository at this point in the history
This reverts commit 81005ee.
  • Loading branch information
rdeutz authored Oct 11, 2024
1 parent 81005ee commit dde18c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Form/Rule/UrlRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function test(\SimpleXMLElement $element, $value, $group = null, ?Registr
return false;
}

// For some schemes there must be two slashes.
// For some schemes here must be two slashes.
$scheme = ['http', 'https', 'ftp', 'ftps', 'gopher', 'wais', 'prospero', 'sftp', 'telnet', 'git'];

if (\in_array($urlScheme, $scheme) && substr($value, \strlen($urlScheme), 3) !== '://') {
Expand Down

0 comments on commit dde18c3

Please sign in to comment.