security when using MyModel.objects.get(name=some_var) in Django

Posted by pablo on Stack Overflow See other posts from Stack Overflow or by pablo
Published on 2010-03-19T02:42:39Z Indexed on 2010/03/19 2:51 UTC
Read the original article Hit count: 260

Filed under:
|

Hi,

Is it safe to query with object.get without escaping or validation user submitted value?

For example:

some_var = request.POST.get('some_key')
obj = MyModel.objects.get(name=some_var)

Can the user submit malicious data?

Thanks

© Stack Overflow or respective owner

Related posts about django

Related posts about validation