Skip to content

Conversation

@vs-adm
Copy link

@vs-adm vs-adm commented May 13, 2015

In some cases Rails may get a malformed request with binary string in QUERY_STRING. In this cases ActionDispatch::Request#filtered_parameters and Rack env hash can't be converted into string and rendered into ERB template correctly.

Trying to do so ends with "ActionView::Template::Error: incompatible character encodings: ASCII-8BIT and UTF-8" error in section generation routine.

This PR forces the encoding of strings to be equal with email character set (UTF-8 by default).

Tests are included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant