8000 Fixing language by ThomasLandauer · Pull Request #2 · GromNaN/symfony · GitHub
[go: up one dir, main page]

Skip to content

Fixing language #2

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

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update FixUrlProtocolListener.php
  • Loading branch information
ThomasLandauer authored Oct 28, 2021
commit e924ff6a5fce92d0ef42edb2952c0fe63702d94f
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function onSubmit(FormEvent $event)
if ($this->defaultProtocol && $data && \is_string($data) && !preg_match('~^[\w+.-]+://~', $data)) {
// Detect email & non-url
if (preg_match('~^([^:/?@]++@|[^./]+$)~', $data)) {
trigger_deprecation('symfony/form', '5.4', 'Form type "url", does not add a default protocol to urls that looks like emails or does not contain a dot or slash.');
trigger_deprecation('symfony/form', '5.4', 'Form type "url" does not add a default protocol to urls that look like email addresses or do not contain a dot or slash.');

return;
}
Expand Down
0