Simple Rack middleware that rejects requests containing invalid UTF-8 byte sequences in their path or query params.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install invalid_utf8_rejector
If you are using Rails, the middleware will automatically be inserted. If not, you will need to manually insert it into your middleware stack.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request