Browse Source

Fix eval vulnerability.

pull/2/head
Jairo Llopis 11 years ago
parent
commit
bb2c687aec
  1. 2
      super_calendar/super_calendar.py

2
super_calendar/super_calendar.py

@ -55,7 +55,7 @@ class super_calendar_configurator(orm.Model):
current_record_ids = current_pool.search( current_record_ids = current_pool.search(
cr, cr,
uid, uid,
line.domain and eval(line.domain) or [],
line.domain and safe_eval(line.domain) or [],
context=context) context=context)
for current_record_id in current_record_ids: for current_record_id in current_record_ids:

Loading…
Cancel
Save