]> git.donarmstrong.com Git - debbugs.git/commitdiff
use https for CVE tracker by default
authorDon Armstrong <don@donarmstrong.com>
Tue, 4 Jul 2017 16:48:20 +0000 (09:48 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 4 Jul 2017 16:48:20 +0000 (09:48 -0700)
Debbugs/CGI/Bugreport.pm
Debbugs/Config.pm

index 0fd134a2ed20e311ff6ef8c3fa7f049d1f397aa4..7883cd5760d38ef513322fd59d908a841c94e193 100644 (file)
@@ -304,7 +304,7 @@ sub display_entity {
            ) {
             # Add links to CVE vulnerabilities (closes #568464)
             $body =~ s{(^|\s|[\(\[])(CVE-\d{4}-\d{4,})(\s|[,.-\[\]\)]|$)}
-                      {$1<a href="http://$config{cve_tracker}$2">$2</a>$3}gxm;
+                      {$1<a href="$config{cve_tracker}$2">$2</a>$3}gxm;
         }
         if (not exists $param{att}) {
              print {$output} qq(<pre class="$css_class">$body</pre>\n);
index 0f23881169481d1188db4620d16b1a5b7ce597f9..e8453e4939c54d0dceec9dcc857a8bc93c8ad2bf 100644 (file)
@@ -189,8 +189,9 @@ set_default(\%config,'mirrors',[]);
 =item package_pages  $gPackagePages
 
 Domain where the package pages are kept; links should work in a
-package_pages/foopackage manner. Defaults to undef, which means that
-package links will not be made.
+package_pages/foopackage manner. Defaults to undef, which means that package
+links will not be made. Should be prefixed with the appropriate protocol
+(http/https).
 
 =cut
 
@@ -238,13 +239,13 @@ set_default(\%config,'cc_all_mails_to_addr',undef);
 =item cve_tracker $gCVETracker
 
 URI to CVE security tracker; in bugreport.cgi, CVE-2001-0002 becomes
-linked to http://$config{cve_tracker}CVE-2001-002
+linked to $config{cve_tracker}CVE-2001-002
 
-Default: security-tracker.debian.org/tracker/
+Default: https://security-tracker.debian.org/tracker/
 
 =cut
 
-set_default(\%config,'cve_tracker','security-tracker.debian.org/tracker/');
+set_default(\%config,'cve_tracker','https://security-tracker.debian.org/tracker/');
 
 
 =back