Skip to content

Commit 795f6ed

Browse files
committed
Ignore a Bandit warning: the input is safe
Signed-off-by: Aurélien Bompard <[email protected]>
1 parent 3aba819 commit 795f6ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datagrepper/app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def preload_docs(endpoint):
188188

189189
api_docs = modify_html(api_docs)
190190

191-
api_docs = markupsafe.Markup(api_docs)
191+
api_docs = markupsafe.Markup(api_docs) # nosec B704
192192
return api_docs
193193

194194

@@ -201,7 +201,7 @@ def load_docs(page):
201201
URL = app.config.get("DATAGREPPER_BASE_URL", flask.request.url_root)
202202
docs = htmldocs[page]
203203
docs = jinja2.Template(docs).render(URL=URL)
204-
return markupsafe.Markup(docs)
204+
return markupsafe.Markup(docs) # nosec B704
205205

206206

207207
def count_all_messages():

0 commit comments

Comments
 (0)