Sha256: fc4ae18e77e2b5ff566471db02e83a79ee641b219f97f62bfb1cb638d4ac0589

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

Handle Invalid Percent Encoding Requests
=======================================

Rails Engine that protects your app against malformed requests.

This middleware renders a 400 error instead of raising exceptions for the
following errors:

- `invalid byte sequence in UTF-8`
- `string contains null byte`

Installation
------------

In your Rails app, add these lines to your `Gemfile`:

```rb
# Helps against "invalid byte sequence" exceptions.
gem "handle_invalid_percent_encoding_requests"
```

Then type `bundle install`.

See also
--------

See also [Ruby on Rails “invalid byte sequence in UTF-8” due to
bot](http://stackoverflow.com/q/24648206/311657) on StackOverflow.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
handle_invalid_percent_encoding_requests-1.1.1 README.md
handle_invalid_percent_encoding_requests-1.1.0 README.md