Correct obfuscation of oversized items (#11944)

This commit is contained in:
Bjarne Koll
2025-01-10 14:38:50 +01:00
committed by GitHub
parent 5e14504f20
commit 400717174e

View File

@@ -94,7 +94,7 @@ public final class OversizedItemComponentSanitizer {
@SuppressWarnings("resource")
@Override
public void encode(final @NonNull B buf, final @NonNull A value) {
if (ItemObfuscationSession.currentSession().obfuscationLevel().obfuscateOversized()) {
if (!ItemObfuscationSession.currentSession().obfuscationLevel().obfuscateOversized()) {
this.delegate.encode(buf, value);
} else {
this.delegate.encode(buf, this.sanitizer.apply(value));