Changeset 654 for trunk/email2trac.py.in


Ignore:
Timestamp:
04/24/14 22:01:07 (9 years ago)
Author:
bas
Message:

fixed format-security problem, closes #341
fixed Typo in variable assignment, closes #342

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r653 r654  
    718718        """
    719719        To bypass a bug in Trac
    720         check if the filename lenght is not larger then OS limit.
     720        check if the filename length is not larger then OS limit.
    721721          yes : return truncated filename
    722722          no  : return unmodified filename
     
    740740            quote_format = util.text.unicode_quote(dummy_filename)
    741741
    742         ## Determine max filename lenght
     742        ## Determine max filename length
    743743        #
    744744        try:
    745745            filemax_length = os.pathconf('/', 'PC_NAME_MAX')
    746746        except AttributeError, detail:
    747             filemax_lenght = 240
     747            filemax_length = 240
    748748
    749749        if len(quote_format) <= filemax_length:
Note: See TracChangeset for help on using the changeset viewer.