Validate idle-pc values for auto idle-pc feature.

This commit is contained in:
grossmj
2017-11-23 10:40:51 +07:00
parent 958ab2294c
commit f48549a997
2 changed files with 7 additions and 4 deletions

View File

@ -17,6 +17,7 @@
import os
import sys
import aiohttp
from gns3server.web.route import Route
from gns3server.schemas.nio import NIO_SCHEMA
@ -466,7 +467,7 @@ class DynamipsVMHandler:
# Raise error if user try to escape
if filename[0] == ".":
raise aiohttp.web.HTTPForbidden
raise aiohttp.web.HTTPForbidden()
yield from response.file(image_path)