Skip to content

Commit 3e67364

Browse files
committed
Bug 1310747 - SSRF
1 parent 2f310fb commit 3e67364

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth.cgi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ ThrowUserError("auth_delegation_invalid_description")
4343
unless $description =~ /^[\w\s]{3,255}$/;
4444

4545
my $callback_uri = URI->new($callback);
46-
$callback_uri->scheme =~ /^https?$/
47-
or ThrowUserError('auth_delegation_illegal_protocol', { protocol => scalar $callback_uri->scheme });
46+
ThrowUserError('auth_delegation_illegal_protocol', { protocol => scalar $callback_uri->scheme })
47+
unless $callback_uri->scheme eq 'https';
4848
my $callback_base = $callback_uri->clone;
4949
$callback_base->query(undef);
5050

0 commit comments

Comments
 (0)