Adi Bhutani Adi Bhutani -5 years ago 262
Python Question

map(eval, raw_input().split()) less secure?

Referring to this stackoverflow question a comment by "phoris" states that

map(eval, raw_input().split())
is less secure. Can somebody explain how is is it less secure and in what context?

Answer Source

Any context. It puts user input through eval(), which is a gaping wide security hole.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download