i hate git
This commit is contained in:
parent
5a13637907
commit
d0ac73dea5
1 changed files with 3 additions and 3 deletions
6
app.py
6
app.py
|
@ -61,7 +61,7 @@ def index():
|
||||||
return render_template("index.html", uploadIndex=uploadIndex, report_count=report_count[0][0], svr_ver=config["version"]), 200
|
return render_template("index.html", uploadIndex=uploadIndex, report_count=report_count[0][0], svr_ver=config["version"]), 200
|
||||||
|
|
||||||
@app.route("/syscheck_up.php", methods=["POST"]) # SysCheckME-dev
|
@app.route("/syscheck_up.php", methods=["POST"]) # SysCheckME-dev
|
||||||
@app.route("/syscheck_receiver.php", methods=["POST"]) # literally anything else
|
@app.route("/syscheck_receiver.php", methods=["POST"]) # literally anything else (DNS?)
|
||||||
def syscheck_report():
|
def syscheck_report():
|
||||||
form_data = request.form.to_dict(flat=False)
|
form_data = request.form.to_dict(flat=False)
|
||||||
report_txt = form_data["syscheck"][0]
|
report_txt = form_data["syscheck"][0]
|
||||||
|
@ -102,9 +102,9 @@ def view_report():
|
||||||
@app.route("/syscheck_dl", methods=["GET"])
|
@app.route("/syscheck_dl", methods=["GET"])
|
||||||
def syscheck():
|
def syscheck():
|
||||||
if len("http://syscheck.rc24.xyz/syscheck_receiver.php") < len(config["replace_str"]):
|
if len("http://syscheck.rc24.xyz/syscheck_receiver.php") < len(config["replace_str"]):
|
||||||
return "Replacement host has to be exactly 48 characters; Specified URL is too long!", 400
|
return "Replacement host has to be exactly 46 characters; Specified URL is too long!", 400
|
||||||
elif len("http://syscheck.rc24.xyz/syscheck_receiver.php") > len(config["replace_str"]):
|
elif len("http://syscheck.rc24.xyz/syscheck_receiver.php") > len(config["replace_str"]):
|
||||||
return "Replacement host has to be exactly 48 characters; Specified URL is too short!", 400
|
return "Replacement host has to be exactly 46 characters; Specified URL is too short!", 400
|
||||||
|
|
||||||
dol = BytesIO()
|
dol = BytesIO()
|
||||||
zip = BytesIO()
|
zip = BytesIO()
|
||||||
|
|
Loading…
Add table
Reference in a new issue