]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1329511 - Any link to user-entered URL with target="_blank" should have rel=...
authorTooru Fujisawa <arai.unmht@gmail.com>
Fri, 13 Jan 2017 22:27:58 +0000 (22:27 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Fri, 13 Jan 2017 22:28:09 +0000 (22:28 +0000)
extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl
extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl

index 4f9dd60b5f4e106f1cf5c9daa38fb0d3bf80169c..f5074dbfa5b93de3388816ef313973d6c4b69e99 100644 (file)
             "$terms.bug $see_also.bug_id" FILTER bug_link(see_also.bug_id);
           ELSE;
             %]
-            <a href="[% see_also.url FILTER html %]" target="_blank">[% see_also.url FILTER html %]</a>
+            <a href="[% see_also.url FILTER html %]" target="_blank" rel="noreferrer">[% see_also.url FILTER html %]</a>
             [%
           END;
           ", " UNLESS loop.last;
index fb5d25225bd46516535d4f980582fd0d5e8ea931..c224a4e45fdc9afb739d35bb491fc885dd233af8 100644 (file)
       [% IF see_also.bug_id %]
         [%~%][% "$terms.bug $see_also.bug_id" FILTER bug_link(see_also.bug_id) FILTER js %]
       [% ELSE %]
-        [%~%]<a href="[% see_also.url FILTER html FILTER js %]" target="_blank">
+        [%~%]<a href="[% see_also.url FILTER html FILTER js %]" target="_blank" rel="noreferrer">
         [%~%][% see_also.url FILTER html FILTER js %]</a>
       [% END %]
       [%- ", " IF NOT loop.last %]