Skip to content

Commit

Permalink
Correct obfuscation of oversized items (#11944)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxplay authored Jan 10, 2025
1 parent 5e14504 commit 4007171
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private record DataSanitizationCodec<B, A>(StreamCodec<B, A> delegate,
@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));
Expand Down

0 comments on commit 4007171

Please sign in to comment.