From a14b822de83950e50b9dbbb2146358e9cc8f451e Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Sun, 16 May 2021 21:13:16 +0800 Subject: [PATCH] Disallow worldname to have . or / --- .../com/onarandombox/MultiverseCore/utils/WorldNameChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldNameChecker.java b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldNameChecker.java index 7e484167..7e7aa8bc 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldNameChecker.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldNameChecker.java @@ -18,7 +18,7 @@ import java.util.regex.Pattern; */ public class WorldNameChecker { - private static final Pattern WORLD_NAME_PATTERN = Pattern.compile("[a-zA-Z0-9/._-]+"); + private static final Pattern WORLD_NAME_PATTERN = Pattern.compile("[a-zA-Z0-9_-]+"); private static final Set BLACKLIST_NAMES = Collections.unmodifiableSet(new HashSet() {{ add("plugins"); add("logs");