diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-03-13 00:40:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 00:40:38 +0100 |
commit | dd407867684c5bcf41e0a979959add088b6a6307 (patch) | |
tree | 3e23f2e58653ecf071700d39b39e918ff3b48f2b /Bugzilla | |
parent | 53040209e92b8745155fbdfacbcd61b8e7967627 (diff) | |
download | bugzilla-dd407867684c5bcf41e0a979959add088b6a6307.tar.gz bugzilla-dd407867684c5bcf41e0a979959add088b6a6307.tar.xz |
Bug 1443162 - attachment links should include urlbase
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Template.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 3c2663e74..7a97f6da2 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -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. |