Change log: https://roxy-wi.org/changelog.py#6_1_1
pull/328/head
Pavel Loginov 2022-07-08 19:41:58 +03:00
parent cfb65d9c6b
commit 1fbcce83c0
1 changed files with 2 additions and 2 deletions

View File

@ -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]