From d80f7542964b08a5202edef48661a02d7cf58643 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 9 Aug 2011 20:34:20 +0200 Subject: flashgot fix --- module/web/cnl_app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/web/cnl_app.py b/module/web/cnl_app.py index 13ddab1ef..d8f7c1180 100644 --- a/module/web/cnl_app.py +++ b/module/web/cnl_app.py @@ -114,9 +114,12 @@ def addcrypted2(): else: return "success\r\n" +@route("/flashgot_pyload") +@route("/flashgot_pyload", method="POST") +@route("/flashgot") @route("/flashgot", method="POST") @local_check -def flashgot(request): +def flashgot(): if request.environ['HTTP_REFERER'] != "http://localhost:9666/flashgot" and request.environ['HTTP_REFERER'] != "http://127.0.0.1:9666/flashgot": return HTTPError() -- cgit v1.2.3