string escape bug
-
How to reproduce:
- register a normal user account. Let's say the email is [email protected]
- insert \b at the beginning of the email string: \[email protected]
In homepage, there is a piece of javascript :
<script>
var RELATIVE_PATH = "";
var config = JSON.parse('{"relative_path":"","version":"1.4.5","siteTitle":"NodeBB","browserTitle":"NodeBB","titleLayout":"{pageTitle} JSON.parse('{"username":"xxxx","userslug":"xxxx","email":"\[email protected]", ...
};
</script>\b won't pass json validator and will cause unexpected behaviors.
See also:
https://community.nodebb.org/topic/10524/bug-report-json-parse-error -
@andy1247008998 what browser are you on? It seems to work just fine in Chrome. This could possibly be a bug with your browser.
Copyright © 2024 NodeBB | Contributors