JangoSteve / remotipart

Rails jQuery file uploads via standard Rails "remote: true" forms.
http://os.alfajango.com/remotipart
Other
1k stars 215 forks source link

Fix #89 #179

Closed westonganger closed 6 years ago

westonganger commented 7 years ago

Fixes #89. Safely monkey patches escape_javascript / j so that it is properly escaped.

This is a nasty bug and deserves this solution right now even if a better one can be developed at a later time. If any help is needed maintaining this library I am very willing as this is an important plugin for my applications.

Lee1984 commented 6 years ago

This pull request helped me fix issue the same as #89 with nested form but using cocoon issue here and this issue I created for remotipart #188

Perfect. Thanks.

mshibuya commented 6 years ago

Thanks, cherry-picked as e0c2731d51e7cf03e34ee618a5901c159dc29322.