http://qs321.pair.com?node_id=189091


in reply to only allow certain parameters

The idea is that I only want to allow certain values to be passed as parameters, and I want to assign a default if the value passed is not one of the legal ones.

This approach hides problems. If you're going to do this, at least log failures so that they can be tracked down and resolved, rather than leaving clients scratching their heads of mysterious behavior.