diff options
author | Matthew I <matttpt@gmail.com> | 2012-09-02 16:51:17 -0400 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-09-05 01:17:28 +0300 |
commit | 5dd1d354f86692e4c08cc78f3d9743557103449e (patch) | |
tree | 1668bdb85e11e7c5faa93a8c59b47a828e4eadad /src/subgame.h | |
parent | a0da6bcf43d71d22b949ccf1e68153b51da53e39 (diff) | |
download | minetest-5dd1d354f86692e4c08cc78f3d9743557103449e.tar.gz minetest-5dd1d354f86692e4c08cc78f3d9743557103449e.tar.bz2 minetest-5dd1d354f86692e4c08cc78f3d9743557103449e.zip |
Enforce stricter world names using a blacklist
Blacklisted characters are: / \
Diffstat (limited to 'src/subgame.h')
-rw-r--r-- | src/subgame.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/subgame.h b/src/subgame.h index e3a299cbe..bffa86e28 100644 --- a/src/subgame.h +++ b/src/subgame.h @@ -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 |