mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
10 lines
240 B
Python
10 lines
240 B
Python
import re
|
|
from flask import Flask, request
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/poly-redos")
|
|
def code_execution():
|
|
text = request.args.get("text")
|
|
re.sub(r"^\s+|\s+$", "", text) # NOT OK
|
|
re.match(r"^0\.\d+E?\d+$", text) # NOT OK
|