From c6f99207959b3bc48cd48bd9d6e5ace098da5ca1 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Thu, 16 Dec 2021 20:31:50 +0530 Subject: [PATCH] fix: removing map filter these can potentially lead to security issues, avoiding for now --- frappe/utils/safe_exec.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/frappe/utils/safe_exec.py b/frappe/utils/safe_exec.py index 83af3f6b46..f51efefc85 100644 --- a/frappe/utils/safe_exec.py +++ b/frappe/utils/safe_exec.py @@ -198,11 +198,9 @@ def get_python_builtins(): 'bool': bool, 'dict': dict, 'enumerate': enumerate, - 'filter': filter, 'isinstance': isinstance, 'issubclass': issubclass, 'list': list, - 'map': map, 'max': max, 'min': min, 'range': range,