]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1443162 - attachment links should include urlbase
authorDylan William Hardison <dylan@hardison.net>
Mon, 12 Mar 2018 23:40:38 +0000 (19:40 -0400)
committerGitHub <noreply@github.com>
Mon, 12 Mar 2018 23:40:38 +0000 (19:40 -0400)
Bugzilla/Template.pm

index 3c2663e74c08485d58f53da80a22684bd74686c5..7a97f6da2fab08386bdfff992dedefa9335a8505 100644 (file)
@@ -284,7 +284,8 @@ sub get_attachment_link {
 
         $link_text =~ s/ \[details\]$//;
         $link_text =~ s/ \[diff\]$//;
-        my $linkval = "attachment.cgi?id=$attachid";
+        state $urlbase = Bugzilla->localconfig->{urlbase};
+        my $linkval = "${urlbase}attachment.cgi?id=$attachid";
 
         # If the attachment is a patch and patch_viewer feature is
         # enabled, add link to the diff.