diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-01-26 18:54:38 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-01-26 18:54:38 +0100 |
commit | e3209457f2d4a6a134d73d0f0e5069ccfc8f88d0 (patch) | |
tree | d337d7b23ebe2faeda8168faccbe6fc33b7a2aa3 /process_bug.cgi | |
parent | c768148f9facf779d572145236453e50e99bee1d (diff) | |
download | bugzilla-e3209457f2d4a6a134d73d0f0e5069ccfc8f88d0.tar.gz bugzilla-e3209457f2d4a6a134d73d0f0e5069ccfc8f88d0.tar.xz |
Bug 1334158 - Lightbox images CSP error on bug modal
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index ac8e32c53..49ac28fc0 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -420,7 +420,8 @@ my $format_params = { }; Bugzilla::Hook::process('show_bug_format', $format_params); if ($format_params->{format} eq 'modal') { - $cgi->content_security_policy(Bugzilla::CGI::SHOW_BUG_MODAL_CSP()); + my $bug_id = $vars->{bug} ? $vars->{bug}->id : undef; + $cgi->content_security_policy(Bugzilla::CGI::SHOW_BUG_MODAL_CSP($bug_id)); } my $format = $template->get_format("bug/show", $format_params->{format}, |