summaryrefslogtreecommitdiffstats
path: root/extensions/InlineHistory/template/en/default/hook/bug
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2011-11-16 06:40:01 +0100
committerByron Jones <bjones@mozilla.com>2011-11-16 06:40:01 +0100
commit0c92404c31069a71099ec6a4b5dc151d453f6bc5 (patch)
tree4a7b59200116ac4c5fa6d7a7894fcd8a967e2fc4 /extensions/InlineHistory/template/en/default/hook/bug
parenteec86341ab238905781728c178d971ab6928a0f3 (diff)
downloadbugzilla-0c92404c31069a71099ec6a4b5dc151d453f6bc5.tar.gz
bugzilla-0c92404c31069a71099ec6a4b5dc151d453f6bc5.tar.xz
Bug 702695: display unsafe-url warning on inline-history urls
Diffstat (limited to 'extensions/InlineHistory/template/en/default/hook/bug')
-rw-r--r--extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl b/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl
index 261f5b3fd..dffec1d28 100644
--- a/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl
+++ b/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl
@@ -136,8 +136,12 @@
[% PROCESS formattimeunit time_unit = value FILTER html FILTER js %]
[% ELSIF change.buglist %]
[% value FILTER bug_list_link FILTER js %]
- [% ELSIF change.fieldname == 'bug_file_loc' ||
- change.fieldname == 'see_also' %]
+ [% ELSIF change.fieldname == 'bug_file_loc' %]
+ [%~%]<a href="[% value FILTER html FILTER js %]" target="_blank"
+ [%~ ' onclick="return inline_history.confirmUnsafeUrl(this.href)"'
+ UNLESS is_safe_url(value) %]>
+ [%~%][% value FILTER html FILTER js %]</a>
+ [% ELSIF change.fieldname == 'see_also' %]
[%~%]<a href="[% value FILTER html FILTER js %]" target="_blank">
[%~%][% value FILTER html FILTER js %]</a>
[% ELSIF change.fieldname == 'assigned_to' ||