No commit activity in last 3 years
No release in over 3 years
rack middleware to reject invalid UTF8 in requests. It will return a 400 if the decoded path or query string contain invalid UTF-8 chars.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 0.6.3
>= 0
= 3.6.0
 Project Readme

InvalidUtf8Rejector

CircleCI

Simple Rack middleware that rejects requests containing invalid UTF-8 byte sequences in their path or query params.

Installation

Add this line to your application's Gemfile:

gem 'invalid_utf8_rejector'

And then execute:

$ bundle

Or install it yourself as:

$ gem install invalid_utf8_rejector

Usage

If you are using Rails, the middleware will automatically be inserted. If not, you will need to manually insert it into your middleware stack.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request