From bb6d6c18f78a2aa50fb0f7a27a34b676602a178c Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Sun, 24 Jul 2022 23:40:44 +0300 Subject: [PATCH] v6.1.2.0 Change log: https://roxy-wi.org/changelog.py#6_1_2 --- app/funct.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/funct.py b/app/funct.py index df102099..e10dce63 100644 --- a/app/funct.py +++ b/app/funct.py @@ -1264,22 +1264,21 @@ def show_finding_in_config(stdout: str, **kwargs) -> str: def show_haproxy_log(serv, rows=10, waf='0', grep=None, hour='00', minut='00', hour1='24', minut1='00', service='haproxy', **kwargs): import sql - exgrep = checkAjaxInput(form.getvalue('exgrep')) + exgrep = form.getvalue('exgrep') log_file = checkAjaxInput(form.getvalue('file')) date = checkAjaxInput(hour) + ':' + checkAjaxInput(minut) date1 = checkAjaxInput(hour1) + ':' + checkAjaxInput(minut1) - grep = checkAjaxInput(grep) rows = checkAjaxInput(rows) waf = checkAjaxInput(waf) cmd = '' if grep is not None: - grep_act = '|egrep "%s"' % grep + grep_act = '|egrep "%s"' % checkAjaxInput(grep) else: grep_act = '' if exgrep is not None: - exgrep_act = '|egrep -v "%s"' % exgrep + exgrep_act = '|egrep -v "%s"' % checkAjaxInput(exgrep) else: exgrep_act = ''