Changeset 465


Ignore:
Timestamp:
07/27/10 10:17:56 (12 years ago)
Author:
bas
Message:

remove \r and \n characters from attachment filenames

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r462 r465  
    22    * Fixed an Unicode error in strip_quotes
    33    Author: Bas van der Vlies
     4
     5    * The attachment filename may not contain '\n' and '\r'
     6      characters.
     7    Reported by: Jean-Paul Duyx <jean-paul dot duyx at vancis dot nl>
     8    Fixed by; Bas van der Vlies
    49   
    5102010-07-23
  • trunk/debian/changelog

    r462 r465  
     1email2trac (1.5.3-2) stable; urgency=low
     2
     3  * See Changelog
     4
     5 -- bas van der Vlies <basv@sara.nl>  Tue, 27 Jul 2010 10:16:19 +0200
     6
    17email2trac (1.5.3-1) stable; urgency=low
    28
  • trunk/email2trac.py.in

    r464 r465  
    18211821                        filename = filename.replace('\\', '_')
    18221822                        filename = filename.replace('/', '_')
     1823
     1824                        ## remove linefeed char
     1825                        #
     1826                        for forbidden_char in ['\r', '\n']:
     1827                                filename = filename.replace(forbidden_char,'')
    18231828
    18241829                        #
Note: See TracChangeset for help on using the changeset viewer.