We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 437f238 commit 6194300Copy full SHA for 6194300
tests/data/marketplace/iris/scoring_logic.py
@@ -3,7 +3,7 @@
3
import logging
4
import re
5
from flask import Flask
6
-from flask import request
+from flask import request, escape
7
from joblib import dump, load
8
import numpy as np
9
import os
@@ -106,4 +106,4 @@ def endpoint_invocations():
106
107
return response
108
except Exception as e:
109
- return f"Error during model invocation: {str(e)} for input: {request.get_data()}"
+ return f"Error during model invocation: {str(e)} for input: {escape(request.get_data())}"
0 commit comments