Bad filename when adding zope.app.file.File from IE

Bug #265149 reported by Dan Korostelev
2
Affects Status Importance Assigned to Milestone
Zope 3
Fix Released
Undecided
Dan Korostelev

Bug Description

When uploading file from MS Internet Explorer, it sets full filesystem path as a filename, so if we don't do additional processing, we end up with object names like "C:\Documents and Settings\user\Desktop\somefile.zip". That's really bad.

I attached a patch for the FileAdd and ImageAdd views that adds simple processing of filenames to get actual filename for the object view. The patch also includes a test for the functionality that checks if adding files with bad filenames actually works.

Please review it.

Revision history for this message
Dan Korostelev (nadako) wrote :
Revision history for this message
Dan Korostelev (nadako) wrote :

I just released a fix for it. So this is fixed in zope.app.file release 3.4.4.

Changed in zope3:
assignee: nobody → nadako
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.