Skip to content

Update FtpLoggingFilter#79

Open
polo7 wants to merge 1 commit into
apache:1.2.Xfrom
polo7:1.2.X
Open

Update FtpLoggingFilter#79
polo7 wants to merge 1 commit into
apache:1.2.Xfrom
polo7:1.2.X

Conversation

@polo7

@polo7 polo7 commented Jun 12, 2025

Copy link
Copy Markdown

Hey there! :)
I see this place is already refactored in comparison with 'master' branch and my changes are quite minor, but maybe you will find them useful. I propose to realign if-conditions from maskPassword && (request.trim().toUpperCase().startsWith("PASS ")) to (request.trim().toUpperCase().startsWith("PASS ")) && maskPassword due to usual use cases:

  • maskPassword is mostly set to true
  • request mostly does not start with "PASS " during regular FTP-sessions

It will help us to hit the else-branch earlier.

Reach else-branch faster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant