Comment 4 for bug 152913

Revision history for this message
Ivan Sergeyenko (svintus) wrote :

The problem is in the following line in filediff.py:

mime_type = gnomevfs.get_mime_type( os.path.abspath(fname) )

The path is not properly escaped before being passed to get_mime_type. You can just replace this line by the following:

import urllib
mime_type = gnomevfs.get_mime_type( urllib.quote(os.path.abspath(fname)) )