This mod messed around with the formspec, adding variable strings into it without escaping them. This PR fixes this. As a general advice: Never trust strings that can change, so you have to be paranoid about them by sending them through minetest.formspec_escape.
It also applies format strings properly to strings that have to be translated.
Please note: String concatenation is toxic for translators, because in other languages, the word order might be different. Always use format strings when you have to use parameters in translatable strings.
This mod messed around with the formspec, adding variable strings into it without escaping them. This PR fixes this. As a general advice: Never trust strings that can change, so you have to be paranoid about them by sending them through
minetest.formspec_escape
.It also applies format strings properly to strings that have to be translated. Please note: String concatenation is toxic for translators, because in other languages, the word order might be different. Always use format strings when you have to use parameters in translatable strings.
Thank you for your attention.