Misc dnd fixes.

This commit is contained in:
Tomeu Vizoso
2007-06-14 12:27:46 +02:00
parent e6e649419a
commit 42e2b95379
2 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -597,7 +597,7 @@ class UriListFileType(FileType):
uris = self._formats['text/uri-list'].get_data().split('\n')
if len(uris) == 1:
uri = urlparse.urlparse(uris[0])
ext = posixpath.splitext(uri.path)[1]
ext = posixpath.splitext(uri[2])[1]
logging.debug(ext)
# FIXME: Bad hack, the type registry should treat text/uri-list as a special case.
if ext in ['.jpg', '.jpeg', '.gif', '.png', '.svg']: