﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20563	Add validation in QueryDict.get()	CHI Cheng	nobody	"Hi,

I'd like to suggest a new parameter in QueryDict.get() named '''pattern'''.

{{{
p = request.GET.get(key='q', default='10', pattern=r'^\d+$')
}}}

As it is submitted by user, the value of parameter '''q''' could be any characters. But I only need a non-negative number, so I add a new '''pattern''' parameter for QueryDict.get(), if the value does not match the pattern, then get() will return default value, as '10' in example, but not the value submitted by user.

If you love this tiny feature I could prepare a patch. (I think it only requires less than 10 lines of codes and dozens of lines of test codes?)"	New feature	closed	HTTP handling	dev	Normal	wontfix			Unreviewed	0	0	0	0	1	0
