Skip to content

Commit 78d7687

Browse files
authored
Fix redirect_uri regex
Make hostname part of redirect_uri regex check optional
1 parent b0a2d39 commit 78d7687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Forms/ClientForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ClientForm extends Form
3535
/**
3636
* RFC3986. AppendixB. Parsing a URI Reference with a Regular Expression.
3737
*/
38-
final public const REGEX_URI = '/^[^:]+:\/\/?[^\s\/$.?#].[^\s]*$/';
38+
final public const REGEX_URI = '/^[^:]+:\/\/?([^\s\/$.?#].[^\s]*)?$/';
3939

4040
/**
4141
* Must have http:// or https:// scheme, and at least one 'domain.top-level-domain' pair, or more subdomains.

0 commit comments

Comments
 (0)