Modify

Opened 20 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)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Ryan J Ollos.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.