From 5431f2fa940ebfc90503162f578bb6d118a233a1 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 19 May 2018 00:40:27 -0400 Subject: some fixes --- Bugzilla/CGI.pm | 2 +- Bugzilla/Quantum.pm | 1 + Bugzilla/Quantum/CGI.pm | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index bfd2a72f6..8158cb9c2 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -26,7 +26,7 @@ use URI; use Role::Tiny::With; -with 'Bugzilla::CGI::ContentSecurityPolicyAttr'; +with 'Bugzilla::CGI::Role'; BEGIN { if (ON_WINDOWS) { diff --git a/Bugzilla/Quantum.pm b/Bugzilla/Quantum.pm index bb7f06b55..7cfed59c6 100644 --- a/Bugzilla/Quantum.pm +++ b/Bugzilla/Quantum.pm @@ -33,6 +33,7 @@ sub startup { my $extensions = Bugzilla::Extension->load_all(); Bugzilla->preload_features(); Bugzilla->template; + $self->secrets([Bugzilla->localconfig->{side_wide_secret}]); my $rest = compile_cgi('rest.cgi'); $self->plugin('Bugzilla::Quantum::Plugin::Glue'); diff --git a/Bugzilla/Quantum/CGI.pm b/Bugzilla/Quantum/CGI.pm index e5db4123f..dd893a0f0 100644 --- a/Bugzilla/Quantum/CGI.pm +++ b/Bugzilla/Quantum/CGI.pm @@ -19,7 +19,7 @@ has 'csp_object' => ( writer => 'set_csp_object', ); -with 'Bugzilla::CGI::ContentSecurityPolicyAttr'; +with 'Bugzilla::CGI::Role'; sub script_name { my ($self) = @_; -- cgit v1.2.3-24-g4f1b