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

Update of template.html with conditional statement #1378

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

DamianHusted
Copy link
Contributor

TLDR; Added boolean operator to report template. This mitigates having a listed vulnerability with the "in" preposition, when no URL/URI is present.

When generating reports, if a reported vulnerability does not have a specific URL/URI, the report will generate according to the following syntax (regardless of whether the URL is present or not):
<Vulnerability name> in <URL>

This often results in a report with vulnerability headings appearing incomplete like: WAF detected in

This change updates template.html file with a conditional check, avoiding this issue.

Vulnerability headings without a URL omit the "in" preposition.

TLDR; Added boolean operator to report template. This mitigates having a listed vulnerability with the "in" preposition, when no URL/URI is present.

--
When generating reports, if a reported vulnerability does not have a specific URL/URI, the report will generate according to the following syntax (regardless of whether the URL is present or not):
<Vulnerability name> in <URL>

This often results in a report with vulnerability headings appearing incomplete like:
WAF detected in 

This change updates template.html file with a conditional check, avoiding this issue.

The vulnerability headings without a URL omit the "in" preposition.
Copy link
Owner

@yogeshojha yogeshojha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@yogeshojha yogeshojha changed the base branch from master to release/2.2.0 August 21, 2024 06:50
@yogeshojha yogeshojha merged commit cdd216e into yogeshojha:release/2.2.0 Aug 21, 2024
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.

2 participants