From 822818cf33ef11ee910d93f29348a1204e53f0b3 Mon Sep 17 00:00:00 2001 From: ljacqu Date: Sat, 15 Jul 2017 18:41:01 +0200 Subject: [PATCH] Revert: Fix default password regex - The regex pattern allows all visible, non-whitespace ASCII symbols, including '0' --- .../xephi/authme/settings/properties/RestrictionSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java b/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java index ca8738c5c..1a3de299d 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/RestrictionSettings.java @@ -158,7 +158,7 @@ public final class RestrictionSettings implements SettingsHolder { @Comment("Regex syntax for allowed chars in passwords") public static final Property ALLOWED_PASSWORD_REGEX = - newProperty("settings.restrictions.allowedPasswordCharacters", "[0-~]*"); + newProperty("settings.restrictions.allowedPasswordCharacters", "[\\x21-\\x7E]*"); @Comment("Force survival gamemode when player joins?") public static final Property FORCE_SURVIVAL_MODE =