commit c7b3fd7331d2dacc3abbae9730fe1f2c8200ba05
parent ab12ebd7c9de940a1cca4aafe358ae0f7498d49d
Author: William Casarin <jb55@jb55.com>
Date: Fri, 16 Dec 2022 10:47:15 -0800
sanitize about
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/index.html b/web/index.html
@@ -10,7 +10,7 @@
<link rel="stylesheet" href="css/responsive.css?v=11">
<script defer src="js/purify.js?v=1"></script>
<script defer src="js/util.js?v=5"></script>
- <script defer src="js/ui/util.js?v=8"></script>
+ <script defer src="js/ui/util.js?v=9"></script>
<script defer src="js/ui/render.js?v=15"></script>
<script defer src="js/noble-secp256k1.js?v=1"></script>
<script defer src="js/bech32.js?v=1"></script>
diff --git a/web/js/ui/util.js b/web/js/ui/util.js
@@ -87,7 +87,7 @@ function show_profile(pk) {
*/
function newlines_to_br(str="") {
return str.split("\n").reduce((acc, part, index) => {
- return acc + part + "<br/>";
+ return acc + sanitize(part) + "<br/>";
}, "");
}