Skip to content
Snippets Groups Projects
Commit f1868071 authored by Andy Yates's avatar Andy Yates
Browse files

Adding an optional trailing / as per RFC for URLs flagged up by John Marshall

parent ac6b9d2c
No related branches found
No related tags found
No related merge requests found
......@@ -1391,7 +1391,7 @@ sub change_access{
sub load_registry_from_url {
my ( $self, $url, $verbose, $no_cache ) = @_;
if ( $url =~ /^mysql\:\/\/([^\@]+\@)?([^\:\/]+)(\:\d+)?(\/\d+)?$/x ) {
if ( $url =~ /^mysql\:\/\/([^\@]+\@)?([^\:\/]+)(\:\d+)?(\/\d+)?\/?$/x ) {
my $user_pass = $1;
my $host = $2;
my $port = $3;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment