actionpack-action_caching icon indicating copy to clipboard operation
actionpack-action_caching copied to clipboard

Ensure rendered html content gets allways marked as html_safe

Open thedarkside opened this issue 5 years ago • 1 comments

Fixing https://github.com/rails/actionpack-action_caching/issues/64

So the problem is that read_fragment calls html_safe on the content string but save_fragment doesnt do that. So on the first call the content string gets piped to the renderer as unsafe and then it gets falsely escaped.

thedarkside avatar Mar 26 '19 15:03 thedarkside

nice fix! Working for me. Thanks @thedarkside!

heldopslippers avatar May 06 '19 04:05 heldopslippers