From fb9f5d3c1416093d8ba351e4b8963d38874d4f28 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 23 Feb 2015 15:56:40 -0700 Subject: [PATCH] List only executable files in upload handler. --- gns3server/handlers/upload_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/handlers/upload_handler.py b/gns3server/handlers/upload_handler.py index 2d89e081..429963a6 100644 --- a/gns3server/handlers/upload_handler.py +++ b/gns3server/handlers/upload_handler.py @@ -37,7 +37,7 @@ class UploadHandler: for filename in files: image_file = os.path.join(root, filename) if os.access(image_file, os.X_OK): - image_files.append(os.path.join(root, filename)) + image_files.append(image_file) except OSError: pass response.template("upload.html", files=image_files)