mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-17 01:04:51 +02:00
List only executable files in upload handler.
This commit is contained in:
parent
8b19029d97
commit
fb9f5d3c14
@ -37,7 +37,7 @@ class UploadHandler:
|
|||||||
for filename in files:
|
for filename in files:
|
||||||
image_file = os.path.join(root, filename)
|
image_file = os.path.join(root, filename)
|
||||||
if os.access(image_file, os.X_OK):
|
if os.access(image_file, os.X_OK):
|
||||||
image_files.append(os.path.join(root, filename))
|
image_files.append(image_file)
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
response.template("upload.html", files=image_files)
|
response.template("upload.html", files=image_files)
|
||||||
|
Loading…
Reference in New Issue
Block a user