2014-11-16, 08:31 PM
When using Quick Edit JEditable inserts the JSON the server returns into the post upon saving before MyBB's javascript interprets it and adds only the relevant bit. If said JSON includes a <script> tag (most likely because of a MyCode), the browser will try to interpret the rest of the JSON as javascript (because </script> gets escaped as <\/script> which isn't a valid closing tag) which results in a syntax error, interrupting MyBB's javascript and showing the user a rather messed up post.
I got around it with a quick-and-dirty try catch in jeditable.min.js around $(self).html(result);, but perhaps the line could be removed entirely.
I got around it with a quick-and-dirty try catch in jeditable.min.js around $(self).html(result);, but perhaps the line could be removed entirely.