Skip to content

URL Validator does not allow pipes #33887

@VinceG

Description

@VinceG
  • Laravel Version: 7.x
  • PHP Version: 7.4.5
  • Database Driver & Version: MySQL 5.7 (irrelevant)

Description:

For some reason in Laravel 7.x the 'url' validator does not allow pipes (|) while Laravel 6.x does.

Steps To Reproduce:

Using Laravel 7.x run the following code:

$url = "https://laravel.com?foo=one|two";
$validator = Validator::make(
    [
    	'url' => $url
    ],
    [
        'url' => 'url'
    ]
);
$validator->errors()->toArray();

Screen Shot 2020-08-14 at 4 47 45 PM

Screen Shot 2020-08-14 at 4 46 03 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions