Do some basic filtering on the parameters, check for ints

This commit is contained in:
2010-06-04 09:11:26 +01:00
parent 7e094f3a37
commit 6ba1b4b32a

View File

@@ -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 == '':