summaryrefslogtreecommitdiff
path: root/src/subgame.h
diff options
context:
space:
mode:
authorMatthew I <matttpt@gmail.com>2012-09-02 16:51:17 -0400
committerPerttu Ahola <celeron55@gmail.com>2012-09-05 01:17:28 +0300
commit5dd1d354f86692e4c08cc78f3d9743557103449e (patch)
tree1668bdb85e11e7c5faa93a8c59b47a828e4eadad /src/subgame.h
parenta0da6bcf43d71d22b949ccf1e68153b51da53e39 (diff)
downloadminetest-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.h2
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