mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Do some basic filtering on the parameters, check for ints
This commit is contained in:
@@ -19,6 +19,8 @@ def retrieve_xml(request):
|
|||||||
# Convert the QuerySet object into a dict
|
# Convert the QuerySet object into a dict
|
||||||
params = {}
|
params = {}
|
||||||
for key,value in p.items():
|
for key,value in p.items():
|
||||||
|
if value.isdigits():
|
||||||
|
value = long(value)
|
||||||
params[key] = value
|
params[key] = value
|
||||||
|
|
||||||
if url_path == '/' or url_path == '':
|
if url_path == '/' or url_path == '':
|
||||||
|
|||||||
Reference in New Issue
Block a user