Bug 330485: Attachment links in comments still say "edit" instead of "details" - Patch by victory(_RSZ_) <bmo@rsz.jp> r=LpSolit a=myk

This commit is contained in:
lpsolit%gmail.com 2006-08-14 20:15:15 +00:00
parent 1dfaea282c
commit 7a0587ff85

View File

@ -379,12 +379,12 @@ sub get_attachment_link {
# Prevent code injection in the title.
$title = value_quote($title);
$link_text =~ s/ \[edit\]$//;
$link_text =~ s/ \[details\]$//;
my $linkval = "attachment.cgi?id=$attachid&amp;action=";
# Whitespace matters here because these links are in <pre> tags.
return qq|<span class="$className">|
. qq|<a href="${linkval}view" title="$title">$link_text</a>|
. qq| <a href="${linkval}edit" title="$title">[edit]</a>|
. qq| <a href="${linkval}edit" title="$title">[details]</a>|
. qq|</span>|;
}
else {