Page MenuHomePhabricator

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

Details

Reference
bz59660

Event Timeline

bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz59660.
Catrope created this task.Jan 5 2014, 3:14 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

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

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