From bb2c687aecdf1117ea2135d013ae9fc807626285 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Thu, 3 Apr 2014 10:46:29 +0200 Subject: [PATCH] Fix eval vulnerability. --- super_calendar/super_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/super_calendar/super_calendar.py b/super_calendar/super_calendar.py index 49f4f17e3..83cc9bd1e 100644 --- a/super_calendar/super_calendar.py +++ b/super_calendar/super_calendar.py @@ -55,7 +55,7 @@ class super_calendar_configurator(orm.Model): current_record_ids = current_pool.search( cr, uid, - line.domain and eval(line.domain) or [], + line.domain and safe_eval(line.domain) or [], context=context) for current_record_id in current_record_ids: