]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix usertag_package_domain to strip protocol if its present
authorDon Armstrong <don@donarmstrong.com>
Tue, 4 Jul 2017 16:47:45 +0000 (09:47 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 4 Jul 2017 16:47:45 +0000 (09:47 -0700)
Debbugs/Config.pm

index b24edf9ca7ae9136693c86913ec2bd1b51fde67d..0f23881169481d1188db4620d16b1a5b7ce597f9 100644 (file)
@@ -47,7 +47,7 @@ BEGIN {
                                 qw($gWebDomain $gHTMLSuffix $gCGIDomain $gMirrors),
                                 qw($gPackagePages $gSubscriptionDomain $gProject $gProjectTitle),
                                 qw($gMaintainer $gMaintainerWebpage $gMaintainerEmail $gUnknownMaintainerEmail),
-                                qw($gPackageTrackingDomain),
+                                qw($gPackageTrackingDomain $gUsertagPackageDomain),
                                 qw($gSubmitList $gMaintList $gQuietList $gForwardList),
                                 qw($gDoneList $gRequestList $gSubmitterList $gControlList),
                                 qw($gStrongList),
@@ -214,7 +214,7 @@ Domain where where usertags of packages belong; defaults to $gPackagePages
 
 =cut
 
-set_default(\%config,'usertag_package_domain',$config{package_pages});
+set_default(\%config,'usertag_package_domain',map {defined $_?s{https?://}{}:(); $_} $config{package_pages});
 
 
 =item subscription_domain $gSubscriptionDomain