Modify ↓
Opened 21 months ago
#14218 new defect
Don't use eval()
Reported by: | Jun Omae | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
Instead, json.dumps and json.loads should be used.
$ grep -r '\<eval(' acct_mgr acct_mgr/guard.py: return attempts and eval(attempts[user][1].get('failed_logins')) or [] acct_mgr/tests/guard.py: attempts = eval(self.session.get('failed_logins', '[]'))
Attachments (0)
Note: See
TracTickets for help on using
tickets.