VisualEditor: Use multipart/form-data encoding when POSTing HTML
Closed, ResolvedPublic

Description

Per Gabriel's report via email, when VE POSTs HTML, it uses multipart/x-www-urlencoded to encode the POST body, which results in a lot of URL-encoding of special characters (especially <>") in the HTML. We should instead use multipart/form-data , which is more efficient for such large POST bodies with many special characters.

TODO: Figure out how to tell the browser to use this encoding when sending an AJAX request.


Version: unspecified
Severity: enhancement

bzimport set Reference to bz59660.
Catrope created this task.Via LegacyJan 5 2014, 3:14 AM
gerritbot added a comment.Via ConduitJan 5 2014, 5:54 AM

Change 105486 had a related patch set uploaded by Catrope:
Add multipart/form-data emulation to ve.init.mw.Target#ajax

https://gerrit.wikimedia.org/r/105486

gerritbot added a comment.Via ConduitJan 15 2014, 10:28 PM

Change 105486 merged by jenkins-bot:
Add multipart/form-data emulation to ve.init.mw.Target#apiRequest

https://gerrit.wikimedia.org/r/105486

Add Comment