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
django
|validation
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