summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--solverapp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/solverapp.py b/solverapp.py
index 39f2670..a2df317 100644
--- a/solverapp.py
+++ b/solverapp.py
@@ -16,7 +16,8 @@
# -------------------------------------------------------------------------
#
-from flask import request, g
+from flask import request
+from markupsafe import Markup
from osdf.apps.baseapp import app, run_app
from osdf.logging.osdf_logging import audit_log
@@ -50,7 +51,7 @@ def opt_model_create_rest_api():
def opt_get_model_rest_api(model_id):
"""Retrieve model data
"""
-
+ model_id = Markup.escape(model_id)
return retrieve_model_data(model_id)