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.
1 parent 142c49b commit 1962330Copy full SHA for 1962330
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "nitrocraft",
3
- "version": "1.2.4",
+ "version": "1.2.5",
4
"private": false,
5
"type": "module",
6
"scripts": {
public/javascript/server-list-builder.js
@@ -116,6 +116,10 @@
116
}
117
118
119
+ function encodeSafeIconSource(value) {
120
+ return encodeURI(sanitizeIconSource(value));
121
+ }
122
+
123
function setNote(element, message, isError) {
124
if (!element) {
125
return;
@@ -539,7 +543,7 @@
539
543
preview.name.textContent = fallbackName;
540
544
preview.version.textContent = state.version ? ("v" + state.version) : "";
541
545
preview.players.textContent = players;
542
- preview.icon.src = state.icon || defaults.icon;
546
+ preview.icon.src = encodeSafeIconSource(state.icon);
547
updatePingBars(preview.ping, state.ping);
548
549
scheduleMotdRender();
0 commit comments