From: kabeer khan Date: Fri, 13 Feb 2015 07:26:04 +0000 (+0900) Subject: elm_photo: sanitise file path X-Git-Tag: v1.14.0-alpha1~188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca4cd246e4a0bea3b779301a5833e281029dc35b;p=platform%2Fupstream%2Felementary.git elm_photo: sanitise file path Summary: Resolved FIXME deal with relative path by sanitising file path Signed-off-by: kabeer khan Reviewers: stephenmhouston, cedric, seoz, devilhorns Reviewed By: cedric, seoz, devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1874 --- diff --git a/src/lib/elm_photo.c b/src/lib/elm_photo.c index d16a54c..a6a08c2 100644 --- a/src/lib/elm_photo.c +++ b/src/lib/elm_photo.c @@ -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,