A query string like ?search=%C3 results in having a string value with invalid encoding
"\xC3".valid_encoding? # => false
If you want to do anything with the string you will get an exception:
"\xC3".upcase # => 'String#upcase': input string invalid (ArgumentError)
Maybe the request validation should always fail (return 400) with a parameter value like that (?search=%C3). Does that make sense?
A query string like
?search=%C3results in having a string value with invalid encodingIf you want to do anything with the string you will get an exception:
Maybe the request validation should always fail (return 400) with a parameter value like that (
?search=%C3). Does that make sense?