On Feb 1, 2007, at 12:18, John Peacock wrote:
Ask Bjørn Hansen wrote:
Hmn, if we are leaving it to individual plugins to do this it
seems like we should at least have a utility method to help.
Yes, but the detainting is fairly specific to what kind of data the
plugin expects, so any utility method would have to accept a regex,
at which point it isn't a whole lot more compact than what Peter
suggested. I've been yelled at before for suggesting a generic
detaint regex (though I can't for the life of me remember in what
context)... ;-)
A couple of generic detaint regular expressions sounds reasonable
though, no? Or maybe it's just an endless downhill slope (and not in
a good way). Hmn.
- ask
--
http://develooper.com/ - http://askask.com/