Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #43 html escaping when layout is false #48

Merged
merged 2 commits into from
Jul 19, 2018

Conversation

antulik
Copy link
Contributor

@antulik antulik commented May 27, 2017

Fixes #43. Same as PR #42 but fixes the cause of the problem.

From rails docs:

When using html: option, HTML entities will be escaped if the string is not marked as HTML safe by using html_safe method.

@antulik antulik changed the title Fix #42 html escaping when layout is false Fix #43 html escaping when layout is false May 27, 2017
@jomo
Copy link

jomo commented May 30, 2017

Can confirm this works, tested using

gem 'actionpack-action_caching', github: 'antulik/actionpack-action_caching', ref: '8c6e52c69315d67437f480da5dce4b7c8737fb32'

@rafaelcgo
Copy link

Hade the same issue. Hope this gets merged.

@stephanpavlovic
Copy link

Me too, any reason this doesn't get merged?

@rafaelfranca
Copy link
Member

It is missing tests.

@antulik
Copy link
Contributor Author

antulik commented Jul 19, 2018

@rafaelfranca updated the tests. Existing tests already test everything, it's just html code doesn't include any html symbols, so fixed that.

@rafaelfranca rafaelfranca merged commit 18ada54 into rails:master Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

caches_action with layout: false produces escaped html output on uncached response
5 participants