So, I really don’t want any nulls passed into my server, because it destroys IE when rendered.
I think a before filter in teh ApplicationController would do the trick.
I kinda want to do something like params.gsub(/\000/,””) but since params is a hash, that won’t work.
What is the shortest way to do this?
Something like this should work:
Then
recursive_gsub(/\000/,"",params)should work. You could even add this method toHashif you want something prettier likeparams.recursive_gsub!(/\000/,"").