We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 346fe86 + 5d7ad06 commit b83c1b7Copy full SHA for b83c1b7
insecure-js/server.js
@@ -155,7 +155,7 @@ const server = http.createServer((req, res) => {
155
}
156
} catch (error) {
157
console.error(error);
158
- responseMessages.push(`<p>An error occurred while processing the JSON5 data: ${error.message}</p>`);
+ responseMessages.push(`<p>An error occurred while processing the JSON5 data: ${escapeHtml(error.message)}</p>`);
159
160
161
0 commit comments