mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
Fix post contentHtml sometimes breaking script parsing
<\/script> tags in post content would sometimes be recognized as actually ending the script tag, even when escaped (not exactly sure why). This is fixed by encoding the < > characters in unicode.
This commit is contained in:
parent
395cd3e53f
commit
825997c857
|
@ -49,7 +49,7 @@
|
|||
if (module.default) module.default(app);
|
||||
}
|
||||
|
||||
app.boot({!! json_encode($payload) !!});
|
||||
app.boot({!! json_encode($payload, JSON_HEX_TAG) !!});
|
||||
@if (! $debug)
|
||||
} catch (e) {
|
||||
window.location += (window.location.search ? '&' : '?') + 'nojs=1';
|
||||
|
|
Loading…
Reference in New Issue
Block a user