summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-04 06:24:10 +0100
committerDylan William Hardison <dylan@hardison.net>2018-03-10 21:54:38 +0100
commit5d3cceca4c8be71a7788af292fc969652ea28748 (patch)
tree150e21b3e1d1273334cd50f33803f74cf5038099
parent78ebe18f428f152558fd2912c757f6b4448900a8 (diff)
downloadbugzilla-5d3cceca4c8be71a7788af292fc969652ea28748.tar.gz
bugzilla-5d3cceca4c8be71a7788af292fc969652ea28748.tar.xz
de-sugar
-rw-r--r--extensions/BMO/Extension.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 08a7beb90..58d4b02cd 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -1671,10 +1671,10 @@ sub psgi_builder {
my ($self, $args) = @_;
my $mount = $args->{mount};
- my $ses_index = Plack::Builder::builder {
+ my $ses_index = Plack::Builder::builder(sub {
my $auth_user = Bugzilla->localconfig->{ses_username};
my $auth_pass = Bugzilla->localconfig->{ses_password};
- Plack::Builder::enable "Auth::Basic", authenticator => sub {
+ Plack::Builder::enable("Auth::Basic", authenticator => sub {
my ($username, $password, $env) = @_;
return ( $auth_user
&& $auth_pass
@@ -1682,9 +1682,9 @@ sub psgi_builder {
&& $password
&& $username eq $auth_user
&& $password eq $auth_pass );
- };
+ });
compile_cgi("ses/index.cgi");
- };
+ });
$mount->{'ses/index.cgi'} = $ses_index;
}