Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding two new filters && Output optimization #1318

Closed
wants to merge 2 commits into from
Closed

Adding two new filters && Output optimization #1318

wants to merge 2 commits into from

Conversation

gorgiaxx
Copy link

If someone adds '\n' within the HTML title tag, it could lead to abnormal line outputs.

https://xxxxx [301] [301
Moved Permanently] [nginx/1.23.1] [111.203.158.238]

Using regular expressions for replacement wasn't convenient enough, so I added two filters.

  • Response server header
  • HTML titlez

Before

-fe '(Server: (Tengine|stgw))|(<title>(WAF|Firewall)</title>)'

After

-fsh Tengine,stgw -ftt WAF,Firewall

@ehsandeep ehsandeep changed the base branch from main to dev August 13, 2023 19:36
@gorgiaxx
Copy link
Author

i will change this to branch dev

@gorgiaxx gorgiaxx closed this Aug 15, 2023
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