Skip to content

Commit

Permalink
Item15182: restricted allowed protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Feb 6, 2023
1 parent 9cde931 commit f120bba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/lib/Foswiki/Net/UserCredAgent.pm
Expand Up @@ -14,6 +14,9 @@ our @ISA = ('LWP::UserAgent');
sub new {
my ( $class, $user, $pass ) = @_;
my $this = $class->SUPER::new();

$this->protocols_allowed( [ 'http', 'https' ] );

$this->{user} = $user;
$this->{pass} = $pass;
return $this;
Expand Down

0 comments on commit f120bba

Please sign in to comment.