Skip to content

Node.js based forum software built for the modern web

fix: escape remoteUrl in account tpl

Julian Lam8805843a4e87
diff --git a/src/user/data.js b/src/user/data.js
index 9b0a335c1c..c56055fbe3 100644
--- a/src/user/data.js
+++ b/src/user/data.js
@@ -281,7 +281,7 @@ module.exports = function (User) {
// works around renderOverride supplying `url` to templates
if (user.url) {
- user.remoteUrl = user.url;
+ user.remoteUrl = validator.escape(user.url);
} else {
delete user.url;
}