summaryrefslogtreecommitdiffstats
path: root/Attachment.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Attachment.pm')
-rw-r--r--Attachment.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/Attachment.pm b/Attachment.pm
index 15ff3a1f3..9f46fd083 100644
--- a/Attachment.pm
+++ b/Attachment.pm
@@ -72,16 +72,13 @@ sub list
my @attachments = ();
while (&::MoreSQLData()) {
my %a;
- ($a{'attachid'}, $a{'date'}, $a{'mimetype'}, $a{'description'}, $a{'ispatch'}, $a{'isobsolete'}) = &::FetchSQLData();
+ ($a{'attachid'}, $a{'date'}, $a{'contenttype'}, $a{'description'}, $a{'ispatch'}, $a{'isobsolete'}) = &::FetchSQLData();
# Format the attachment's creation/modification date into something readable.
if ($a{'date'} =~ /^(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/) {
$a{'date'} = "$3/$4/$2 $5:$6";
}
- # Quote HTML characters (&<>) in the description so they display correctly.
- $a{'description'} = &::value_quote($a{'description'});
-
# Retrieve a list of status flags that have been set on the attachment.
&::PushGlobalSQLState();
&::SendSQL("