Ticket #18150: ie san removed.diff

File ie san removed.diff, 1.0 KB (added by supersteve9219, 2 years ago)
  • django/http/multipartparser.py

    diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py
    index 070874f..d84c3e0 100644
    a b class MultiPartParser(object): 
    173173                    if not file_name:
    174174                        continue
    175175                    file_name = force_text(file_name, encoding, errors='replace')
    176                     file_name = self.IE_sanitize(unescape_entities(file_name))
     176                    file_name = unescape_entities(file_name)
    177177
    178178                    content_type = meta_data.get('content-type', ('',))[0].strip()
    179179                    try:
    class MultiPartParser(object): 
    258258                                       file_obj)
    259259                break
    260260
    261     def IE_sanitize(self, filename):
    262         """Cleanup filename from Internet Explorer full paths."""
    263         return filename and filename[filename.rfind("\\")+1:].strip()
    264 
    265261class LazyStream(six.Iterator):
    266262    """
    267263    The LazyStream wrapper allows one to get and "unget" bytes from a stream.
Back to Top