Commit b2c3a09b279f59eb64921d6c0b3cf50257614127

Authored by Erickson Silva
1 parent 3b1b04e5
Exists in devel

Verifica se o tipo da plataforma de sinal requisito é compatível

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/TranslationServer.py
... ... @@ -102,7 +102,7 @@ def update_platform_db(platform_name):
102 102 conn.commit()
103 103  
104 104 def check_sign(sign_name, sign_type):
105   - if " " in sign_name: abort(400)
  105 + if " " in sign_name or sign_type not in BUNDLES_PATH: abort(400)
106 106 bundle_path = os.path.join(BUNDLES_PATH[sign_type], sign_name)
107 107 file_exists = os.path.exists(bundle_path)
108 108 if RUN_MODE == "full":
... ...