Waterfall/Waterfall-Proxy-Patches/0012-Don-t-allow-name-containing-dot.patch

24 lines
895 B
Diff
Raw Normal View History

2022-02-19 16:21:14 +01:00
From 1110d8e2d16633d02c7839b38f800ee5cedc0a84 Mon Sep 17 00:00:00 2001
2020-12-16 11:30:39 +01:00
From: foss-mc <69294560+foss-mc@users.noreply.github.com>
Date: Wed, 16 Dec 2020 18:25:51 +0800
Subject: [PATCH] Don't allow name containing dot
2021-09-30 22:39:13 +02:00
diff --git a/proxy/src/main/java/net/md_5/bungee/util/AllowedCharacters.java b/proxy/src/main/java/net/md_5/bungee/util/AllowedCharacters.java
2021-12-30 03:02:28 +01:00
index d1cd1090..44cb1ce6 100644
2021-09-30 22:39:13 +02:00
--- a/proxy/src/main/java/net/md_5/bungee/util/AllowedCharacters.java
+++ b/proxy/src/main/java/net/md_5/bungee/util/AllowedCharacters.java
@@ -21,7 +21,8 @@ public final class AllowedCharacters
} else
2020-12-16 11:30:39 +01:00
{
2021-09-30 22:39:13 +02:00
// Don't allow spaces, Yaml config doesn't support them
- return isChatAllowedCharacter( c ) && c != ' ';
+ // FlameCord - Don't allow dots
+ return isChatAllowedCharacter( c ) && c != ' ' && c != '.';
}
}
2020-12-16 11:30:39 +01:00
--
2021-12-30 03:02:28 +01:00
2.32.0
2020-12-16 11:30:39 +01:00