We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f310fb commit 3e67364Copy full SHA for 3e67364
auth.cgi
@@ -43,8 +43,8 @@ ThrowUserError("auth_delegation_invalid_description")
43
unless $description =~ /^[\w\s]{3,255}$/;
44
45
my $callback_uri = URI->new($callback);
46
-$callback_uri->scheme =~ /^https?$/
47
- or ThrowUserError('auth_delegation_illegal_protocol', { protocol => scalar $callback_uri->scheme });
+ThrowUserError('auth_delegation_illegal_protocol', { protocol => scalar $callback_uri->scheme })
+ unless $callback_uri->scheme eq 'https';
48
my $callback_base = $callback_uri->clone;
49
$callback_base->query(undef);
50
0 commit comments