Commits

Thomas Waldmann  committed 2b4bcb8

for archive members, force attachment download mode, so it uses the member filename, fixes #306

  • Participants
  • Parent commits df3e722

Comments (0)

Files changed (1)

File MoinMoin/items/content.py

             mt = MimeType(filename=filename)
             content_length = None
             file_to_send = self.get_member(member)
+            # force attachment download, so it uses attachment_filename
+            # otherwise it will use the itemname from the URL for saving
+            force_attachment = True
         else: # content = item revision
             rev = self.rev
             filename = rev.item.name