mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Enforce stricter world names using a blacklist
Blacklisted characters are: / \
This commit is contained in:
parent
a0da6bcf43
commit
5dd1d354f8
4 changed files with 35 additions and 1 deletions
|
@ -24,6 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
#define WORLDNAME_BLACKLISTED_CHARS "/\\"
|
||||
|
||||
struct SubgameSpec
|
||||
{
|
||||
std::string id; // "" = game does not exist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue