summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/Extension.pm
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2015-01-06 23:10:09 +0100
committerReed Loden <reed@reedloden.com>2015-01-06 23:10:46 +0100
commitce356db60ac26cefd208f6a7474c337c00237f27 (patch)
tree764aac31e92b6277021c91769067186d696da520 /extensions/BMO/Extension.pm
parent7bbb2425c7d3da7dc58e1bde64aed3e61fe79b5b (diff)
downloadbugzilla-ce356db60ac26cefd208f6a7474c337c00237f27.tar.gz
bugzilla-ce356db60ac26cefd208f6a7474c337c00237f27.tar.xz
Bug 1118401 - Use https:// for linkification of CVEs and VCS-related output
r=dkl
Diffstat (limited to 'extensions/BMO/Extension.pm')
-rw-r--r--extensions/BMO/Extension.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 66d909b45..604de68cb 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -559,7 +559,7 @@ sub bug_format_comment {
replace => sub {
my $args = shift;
my $match = html_quote($args->{matches}->[0]);
- return qq{<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=$match">$match</a>};
+ return qq{<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=$match">$match</a>};
}
});
@@ -569,7 +569,7 @@ sub bug_format_comment {
replace => sub {
my $args = shift;
my $match = html_quote($args->{matches}->[0]);
- return qq{<a href="http://viewvc.svn.mozilla.org/vc?view=rev&amp;revision=$match">r$match</a>};
+ return qq{<a href="https://viewvc.svn.mozilla.org/vc?view=rev&amp;revision=$match">r$match</a>};
}
});
@@ -586,7 +586,7 @@ sub bug_format_comment {
my $id = html_quote($args->{matches}->[3]);
$url =~ s/\s+$//;
$url =~ s/\/$//;
- return qq{$preamble<a href="http://$url/revision/$id">$text</a>};
+ return qq{$preamble<a href="https://$url/revision/$id">$text</a>};
}
});
@@ -600,7 +600,7 @@ sub bug_format_comment {
my $repo = html_quote($args->{matches}->[1]);
my $text = $args->{matches}->[2];
my $revision = $args->{matches}->[3];
- return qq#$preamble<a href="http://git.mozilla.org/?p=$repo;a=commitdiff;h=$revision">$text</a>#;
+ return qq#$preamble<a href="https://git.mozilla.org/?p=$repo;a=commitdiff;h=$revision">$text</a>#;
}
});