Ticket #1112: trac-0.8-attachments-r2.patch
| File trac-0.8-attachments-r2.patch, 0.7 kB (added by bitserf@…, 4 years ago) |
|---|
-
File.py
old new 137 137 urllib.quote(self.attachment_id), 138 138 urllib.quote(self.filename)) 139 139 try: 140 fd = open(self.path, 'rb') 140 fd = None 141 try: 142 fd = open(urllib.unquote(self.path), 'rb') 143 except IOError: 144 pass 145 if not fd: 146 fd = open(self.path, 'rb') 141 147 except IOError: 142 148 raise util.TracError('Attachment not found') 143 149
