From: Kohei Yoshino Date: Wed, 10 Apr 2019 18:17:38 +0000 (-0400) Subject: Bug 1543155 followup - fix uncaught call to old CSP builder. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3384f418c2682e5c7fda51c62fbf1aa3be07af21;p=thirdparty%2Fbugzilla.git Bug 1543155 followup - fix uncaught call to old CSP builder. --- diff --git a/Bugzilla.pm b/Bugzilla.pm index 9924600c1..b6e2a8285 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -13,7 +13,7 @@ use warnings; use Bugzilla::Logging; -our $VERSION = '20190410.1'; +our $VERSION = '20190410.2'; use Bugzilla::Auth; use Bugzilla::Auth::Persist::Cookie; diff --git a/post_bug.cgi b/post_bug.cgi index ee94b330d..b4bce25bf 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -304,8 +304,7 @@ $format = $template->get_format("bug/create/created", $cgi->delete('format'); if ($user->setting('ui_experiments') eq 'on') { - Bugzilla->cgi->content_security_policy( - SHOW_BUG_MODAL_CSP($bug->id)); + $C->content_security_policy(SHOW_BUG_MODAL_CSP($bug->id)); } print $cgi->header(); $template->process($format->{'template'}, $vars)