Commit 91c2f3d9 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 330485: Attachment links in comments still say "edit" instead of "details" -…

Bug 330485: Attachment links in comments still say "edit" instead of "details" - Patch by victory(_RSZ_) <bmo@rsz.jp> r=LpSolit a=myk
parent 212b28b0
...@@ -379,12 +379,12 @@ sub get_attachment_link { ...@@ -379,12 +379,12 @@ sub get_attachment_link {
# Prevent code injection in the title. # Prevent code injection in the title.
$title = value_quote($title); $title = value_quote($title);
$link_text =~ s/ \[edit\]$//; $link_text =~ s/ \[details\]$//;
my $linkval = "attachment.cgi?id=$attachid&amp;action="; my $linkval = "attachment.cgi?id=$attachid&amp;action=";
# Whitespace matters here because these links are in <pre> tags. # Whitespace matters here because these links are in <pre> tags.
return qq|<span class="$className">| return qq|<span class="$className">|
. qq|<a href="${linkval}view" title="$title">$link_text</a>| . 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>|; . qq|</span>|;
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment