Maato / thunar-dropbox

Plugin for thunar that adds context-menu items for dropbox.
GNU General Public License v3.0
32 stars 5 forks source link

Validate UTF-8 in path before calling dropbox_write() #6

Closed Haddayn closed 9 years ago

Haddayn commented 9 years ago

Invalid UTF-8 caused G_IO_STATUS_ERROR in dropbox_write(), when a file with such path was selected, which in turn resulted in 'crash'.

Maato commented 9 years ago

I recreated the bug by creating a file with an invalid encoding with: touch $(echo -e \\xAD) and verified that this indeed fixes it. Thanks for the patch.