MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / XSS1

Function XSS1

tests/files/pyt_examples/XSS_sanitised.py:6–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5@app.route('/XSS_param', methods =['GET'])
6def XSS1():
7 param = request.args.get('param', 'not set')
8
9 param = Markup.escape(param)
10
11 html = open('templates/XSS_param.html').read()
12 resp = make_response(html.replace('{{ param }}', param))
13 return resp
14
15if __name__ == '__main__':
16 app.run(debug= True)

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected