geforkt von Mirrors/Paper
Fix missing this causing unnormalized key to be validated
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
536017764d
Commit
debc7172fd
@ -68,8 +68,8 @@ public final class NamespacedKey {
|
|||||||
this.key = key.toLowerCase().toLowerCase(Locale.ROOT);
|
this.key = key.toLowerCase().toLowerCase(Locale.ROOT);
|
||||||
|
|
||||||
// Check validity after normalization
|
// Check validity after normalization
|
||||||
Preconditions.checkArgument(VALID_NAMESPACE.matcher(namespace).matches(), "namespace");
|
Preconditions.checkArgument(VALID_NAMESPACE.matcher(this.namespace).matches(), "namespace");
|
||||||
Preconditions.checkArgument(VALID_KEY.matcher(key).matches(), "key");
|
Preconditions.checkArgument(VALID_KEY.matcher(this.key).matches(), "key");
|
||||||
|
|
||||||
String string = toString();
|
String string = toString();
|
||||||
Preconditions.checkArgument(string.length() < 256, "NamespacedKey must be less than 256 characters (%s)", string);
|
Preconditions.checkArgument(string.length() < 256, "NamespacedKey must be less than 256 characters (%s)", string);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren