seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ca4cd246e4a0bea3b779301a5833e281029dc35b

commit ca4cd246e4a0bea3b779301a5833e281029dc35b
Author: kabeer khan <kabeer.k...@samsung.com>
Date:   Fri Feb 13 16:26:04 2015 +0900

    elm_photo: sanitise file path
    
    Summary:
    Resolved FIXME deal with relative path by sanitising file path
    
    Signed-off-by: kabeer khan <kabeer.k...@samsung.com>
    
    Reviewers: stephenmhouston, cedric, seoz, devilhorns
    
    Reviewed By: cedric, seoz, devilhorns
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D1874
---
 src/lib/elm_photo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,

-- 


Reply via email to