Project

General

Profile

« Previous | Next » 

Revision a0e1286d

Added by Amir Fefer over 7 years ago

Fixes #17808 - fix 'multipart form data' IE bug

According to this bug
(https://connect.microsoft.com/IE/Feedback/Details/868498),
multipart form data is malformed if there are fields without names.
This bug has been solved within Edge browser,
however no solution is expected for IE10/IE11

View differences:

app/views/templates/_form.html.erb
not have a 'name' attribute so browsers will not send them in the form POST. %>
<input type="hidden" id="old" value="<%= @template.template %>" />
<input type="hidden" id="new" value="<%= @template.template %>" />
<%# This hidden input is a workaround to fix IE Multipart form data bug (https://connect.microsoft.com/IE/Feedback/Details/868498) %>
<input type="hidden" name="_ie_support" %>
<% end %>

Also available in: Unified diff