mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Fix missing this causing unnormalized key to be validated
By: md_5 <git@md-5.net>
This commit is contained in:
parent
536017764d
commit
debc7172fd
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ public final class NamespacedKey {
|
|||
this.key = key.toLowerCase().toLowerCase(Locale.ROOT);
|
||||
|
||||
// Check validity after normalization
|
||||
Preconditions.checkArgument(VALID_NAMESPACE.matcher(namespace).matches(), "namespace");
|
||||
Preconditions.checkArgument(VALID_KEY.matcher(key).matches(), "key");
|
||||
Preconditions.checkArgument(VALID_NAMESPACE.matcher(this.namespace).matches(), "namespace");
|
||||
Preconditions.checkArgument(VALID_KEY.matcher(this.key).matches(), "key");
|
||||
|
||||
String string = toString();
|
||||
Preconditions.checkArgument(string.length() < 256, "NamespacedKey must be less than 256 characters (%s)", string);
|
||||
|
|
Loading…
Reference in a new issue