I looked over and over and I couldn't seem to find an answer to what I want, but here goes:
I have a client that is really computer illiterate and I want to ensure that any errors that arise are handled without intervention. The one thing I'm stuck on currently though is the "The URI you submitted has disallowed characters." error.
I don't want to simply allow all the characters to circumvent the error. Instead what I'd like to do is simply redirect to a particular URI when this error happens. For example:
www.local.com/project/login/'''' ---> www.local.com/project/login
I looked at doing it with hooks, but I'd like to be able to specify a custom URL when I want to execute the check.
I was thinking about using a call to a library method which will pull in the characters from the configuration, then redirect based on whether the check passes or not, with the current URL and URI redirect as a parameter. Is this the way to do it, or is there an easier way to manage this?