Randy Syring  committed cd9f1b6

tests to show how IE7 can put full UNC paths in the filename attribute of multi-part form data. For some reason, werkzeug.formparser:_fix_ie_filename doesn't seem to be catching this.

  • Participants
  • Parent commits 8d92835

Comments (0)

Files changed (2)

File tests/multipart/ie7_full_path_request.txt

Binary file added.

File tests/

         assert == repr(text)
+def test_ie7_full_path():
+    client = Client(form_data_consumer, Response)
+    data_file = join(dirname(__file__), 'multipart', 'ie7_full_path_request.txt')
+    data = get_contents(data_file)
+    boundary = '---------------------------7da36d1b4a0164'
+    response ='/?object=cb_file_upload_multiple', data=data, content_type=
+                               'multipart/form-data; boundary="%s"' % boundary, content_length=len(data))
+    lines ='\n', 3)[0:3]
+    assert lines[0] == "'Sellersburg Town Council Meeting 02-22-2010doc.doc'", lines[0]
 def test_end_of_file_multipart():
     """Test for multipart files ending unexpectedly"""
     # This test looks innocent but it was actually timeing out in