Edgewall Software

Changeset 2659


Ignore:
Timestamp:
Dec 15, 2005, 10:39:47 AM (19 years ago)
Author:
Christian Boos
Message:

Ported [2656] to 0.9-stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9-stable/trac/attachment.py

    r2560 r2659  
    259259            parent_id = '/'.join(segments[:-1])
    260260            filename = segments[-1]
     261            if len(segments) == 1 or not filename:
     262                raise TracError('Bad request')           
    261263            attachment = Attachment(self.env, parent_type, parent_id, filename)
    262264
Note: See TracChangeset for help on using the changeset viewer.