forked from enlightenment/efl
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:
parent
44556de7f9
commit
caca7d7204
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue