Skip to content

Commit

Permalink
Item14380: fixed unit test for https default urls
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Feb 27, 2023
1 parent ea578c8 commit c807b44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/lib/Foswiki/Engine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,8 @@ sub _getConnectionData {
$host = $2;
}
elsif ( defined $Foswiki::cfg{DefaultUrlHost} ) {
($host) = $Foswiki::cfg{DefaultUrlHost} =~ m#https?://([^:/]+)#i;
( $proto, $host ) =
$Foswiki::cfg{DefaultUrlHost} =~ m#(https?)://([^:/]+)#i;
}
}

Expand Down Expand Up @@ -639,7 +640,7 @@ sub _getConnectionData {
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2010 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2023 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down

0 comments on commit c807b44

Please sign in to comment.