elm_photo: sanitise file path

Summary:
Resolved FIXME deal with relative path by sanitising file path

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: stephenmhouston, cedric, seoz, devilhorns

Reviewed By: cedric, seoz, devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1874
This commit is contained in:
kabeer khan 2015-02-13 16:26:04 +09:00 committed by Daniel Juyung Seo
parent 44556de7f9
commit caca7d7204
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ _long_press_cb(void *obj)
{
char buf[4096 + 7];
/* FIXME: Deal with relative paths; use PATH_MAX */
file = eina_file_path_sanitize(file);
snprintf(buf, sizeof(buf), "file://%s", file);
if (elm_drag_start
(obj, ELM_SEL_FORMAT_IMAGE, buf, ELM_XDND_ACTION_MOVE,