From 1fbcce83c0adae231f0652932757e0e3ecea033f Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Fri, 8 Jul 2022 19:41:58 +0300 Subject: [PATCH] v6.1.1.0 Change log: https://roxy-wi.org/changelog.py#6_1_1 --- app/options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/options.py b/app/options.py index b1e87fa1..51527568 100644 --- a/app/options.py +++ b/app/options.py @@ -47,8 +47,6 @@ if not sql.check_token_exists(token): sys.exit() if form.getvalue('getcerts') is not None and serv is not None: - if funct.checkAjaxInput(getcerts): - print('error: Nice try') cert_path = sql.get_setting('cert_path') commands = ["sudo ls -1t " + cert_path + " |grep -E 'pem|crt|key'"] try: @@ -66,6 +64,7 @@ if form.getvalue('getcert') is not None and serv is not None: cert_id = form.getvalue('getcert') if funct.checkAjaxInput(cert_id): print('error: Nice try') + sys.exit() cert_path = sql.get_setting('cert_path') commands = ["openssl x509 -in " + cert_path + "/" + cert_id + " -text"] @@ -77,6 +76,7 @@ if form.getvalue('getcert') is not None and serv is not None: if form.getvalue('delcert') is not None and serv is not None: if funct.checkAjaxInput(cert_id): print('error: Nice try') + sys.exit() cert_path = sql.get_setting('cert_path') commands = ["sudo rm -f " + cert_path + "/" + cert_id]