diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-01-05 12:50:21 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-01-05 12:50:21 +0100 |
commit | 26db658179ff62a735c6b45767008603914c63ed (patch) | |
tree | b0d19536e44054695c2f3f63f403b4d795a199e5 /template/en/default/bug/edit.html.tmpl | |
parent | fc6271c7fa4e915319462f9d27a52061ed609739 (diff) | |
download | bugzilla-26db658179ff62a735c6b45767008603914c63ed.tar.gz bugzilla-26db658179ff62a735c6b45767008603914c63ed.tar.xz |
Bug 1113630: Set window.opener to null for the URL field to prevent interaction between a remote script and the bug report
r=gerv a=glob
Diffstat (limited to 'template/en/default/bug/edit.html.tmpl')
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index e27f47263..441c3ecac 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -492,7 +492,7 @@ <span id="bz_url_edit_container" class="bz_default_hidden"> [% IF is_safe_url(bug.bug_file_loc) %] <a href="[% bug.bug_file_loc FILTER html %]" target="_blank" - title="[% bug.bug_file_loc FILTER html %]"> + rel="noreferrer" title="[% bug.bug_file_loc FILTER html %]"> [% bug.bug_file_loc FILTER truncate(40) FILTER html %]</a> [% ELSE %] [% bug.bug_file_loc FILTER html %] @@ -503,7 +503,8 @@ [% url_output = INCLUDE input no_td=1 inputname => "bug_file_loc" size => "40" colspan => 2 %] [% IF NOT bug.check_can_change_field("bug_file_loc", 0, 1) AND is_safe_url(bug.bug_file_loc) %] - <a href="[% bug.bug_file_loc FILTER html %]">[% url_output FILTER none %]</a> + <a href="[% bug.bug_file_loc FILTER html %]" + rel="noreferrer">[% url_output FILTER none %]</a> [% ELSE %] [% url_output FILTER none %] [% END %] |