Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENCE.txt
LICENSE.txt
README.md
Rakefile
invalid_utf8_rejector.gemspec

README.md

InvalidUtf8Rejector

Build Status

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
Something went wrong with that request. Please try again.