Merge pull request #415 from metalefty/pathname-should-be-url-decoded

Fix clipboard fle when directory name contains non-ASCII or ASCII non-alphanumeric chars
This commit is contained in:
metalefty 2016-09-01 13:29:33 +09:00 committed by GitHub
commit de6ed280b2

View File

@ -200,6 +200,7 @@ clipboard_get_file(char* file, int bytes)
}
g_memcpy(filename, file + pindex + 1, (bytes - 1) - pindex);
/* this should replace %20 with space */
clipboard_check_file(pathname);
clipboard_check_file(filename);
g_snprintf(full_fn, 255, "%s/%s", pathname, filename);
if (g_directory_exist(full_fn))