diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-02-20 15:11:48 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-02-20 15:11:54 +0100 |
commit | 3bd95a4452433e68b21935463cb9e6b07ff4e449 (patch) | |
tree | 07ad59b04f34f9ecebcc167089e178c288326a7a /template/en/default | |
parent | 9ceb2e0a1564aa2d059646bc704f21283507ac9e (diff) | |
download | bugzilla-3bd95a4452433e68b21935463cb9e6b07ff4e449.tar.gz bugzilla-3bd95a4452433e68b21935463cb9e6b07ff4e449.tar.xz |
Bug 1432296 - Prevent bugzilla static assets from being blocked by overly long request URIs
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/global/header.html.tmpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 04b996e16..428354233 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -98,6 +98,12 @@ <meta charset="UTF-8"> [% END %] + [% IF Bugzilla.cgi.should_block_referrer %] + <meta name="referrer" content="origin"> + [% ELSE %] + <meta name="referrer" content="origin-when-crossorigin"> + [% END %] + [%- js_BUGZILLA = { param => { maxusermatches => Param('maxusermatches'), @@ -206,7 +212,6 @@ [% IF allow_mobile && is_mobile_browser %] <meta name="viewport" content="width=device-width, initial-scale=1"> [% END %] - <meta name="referrer" content="origin-when-crossorigin"> [% Hook.process("additional_header") %] </head> |