]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Fix the the default web domain assignment to handle '/' correctly
authorDon Armstrong <don@donarmstrong.com>
Sun, 10 Feb 2008 05:06:02 +0000 (21:06 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 10 Feb 2008 05:06:02 +0000 (21:06 -0800)
Debbugs/Config.pm

index b54f7c9b26595d0f5bc6476d7887bac825fd23c3..bc4a7cfc164f81bf1b17c8ed13352ec9ff168709 100644 (file)
@@ -142,7 +142,7 @@ concatenation of L</web_host> and L</web_host_bug_dir>
 
 =cut
 
-set_default(\%config,'web_domain',$config{web_host}.'/'.$config{web_host_bug_dir});
+set_default(\%config,'web_domain',$config{web_host}.($config{web_host}=~m{/$}?'':'/').$config{web_host_bug_dir});
 
 =item html_suffix $gHTMLSuffix