From c827ade816266209472060a90d82e33f8765f8d9 Mon Sep 17 00:00:00 2001 From: "xianzelin@huoxian.cn" Date: Wed, 22 Dec 2021 17:09:28 +0800 Subject: [PATCH 1/2] add field to record userid in user-feedback --- iast/views/vul_details.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iast/views/vul_details.py b/iast/views/vul_details.py index 5b239b5c..bfa1e025 100644 --- a/iast/views/vul_details.py +++ b/iast/views/vul_details.py @@ -374,10 +374,10 @@ def is_need_http_detail(name): def parse_param_name(param_name): try: - res = json.dumps(param_name) + res = json.loads(param_name) return res except: - return {} + return res if __name__ == '__main__': vul = VulDetail() From e31ec30c1b66be7fb4df22d38cf96bd87d9f64a4 Mon Sep 17 00:00:00 2001 From: "xianzelin@huoxian.cn" Date: Wed, 22 Dec 2021 17:11:22 +0800 Subject: [PATCH 2/2] add field to record userid in user-feedback --- iast/views/vul_details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iast/views/vul_details.py b/iast/views/vul_details.py index bfa1e025..915c9394 100644 --- a/iast/views/vul_details.py +++ b/iast/views/vul_details.py @@ -377,7 +377,7 @@ def parse_param_name(param_name): res = json.loads(param_name) return res except: - return res + return {} if __name__ == '__main__': vul = VulDetail()