mobile_api_json_reply sends extra stuff at the top, making it invalid json
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Leo Xiong | ||
1.8 |
Fix Released
|
High
|
Robert Lyon |
Bug Description
An example is this, using the wrong api token
D/RestClient( 2917): Response = <form name="jsdetecto
D/RestClient( 2917): <input name="javascrip
D/RestClient( 2917): <script type="text/
D/RestClient( 2917): document.
D/RestClient( 2917): </script>
D/RestClient( 2917): </form>
Stolen from a maharadroid with a patch to log the responses, but that can be obtained with easier ways.
Just need to find the jsdectector stuff and make sure it isn't done in a part of mahara that has json reply in it. This may actually break some of the json stuff as well? or the /api/mobile/
tags: | added: maharadroid |
Changed in mahara: | |
status: | Triaged → Opinion |
status: | Opinion → New |
Changed in mahara: | |
status: | New → In Progress |
assignee: | nobody → Leo Xiong (hello-w) |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
See also https:/ /bugs.launchpad .net/mahara/ +bug/1261610