Fix Bug 885548 - Prevent malicious code being passed in as search types and queries hitting client side