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

fix(html): Produce valid HTML output in Prowler v3 #3863

Merged
merged 1 commit into from May 6, 2024

Conversation

rieck-srlabs
Copy link
Contributor

Description

Prowler (v3) failed to produce valid HTML outputs. There were

  • tags not closed
  • attributes not placed in double quotes
  • text elements not properly HTML-escaped
  • superfluous </div> elements

Browsers don't seem to mind, but I was experimenting with modifying the generated HTML and ran into issues with XML parsers not accepting the output.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rieck-srlabs rieck-srlabs requested review from a team as code owners April 26, 2024 09:10
Copy link

codecov bot commented Apr 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.96%. Comparing base (15133f2) to head (4c14af6).
Report is 11 commits behind head on v3.

Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #3863      +/-   ##
==========================================
+ Coverage   85.87%   85.96%   +0.08%     
==========================================
  Files         706      706              
  Lines       21852    21853       +1     
==========================================
+ Hits        18766    18785      +19     
+ Misses       3086     3068      -18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jfagoagas jfagoagas requested a review from n4ch04 May 3, 2024 08:53
@jfagoagas jfagoagas assigned jfagoagas and pedrooot and unassigned jfagoagas May 6, 2024
Copy link
Member

@pedrooot pedrooot left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! @rieck-srlabs 🔝 🚀

@pedrooot pedrooot added backport-v3 Pending to port to Prowler v3 branch and removed backport-v3 Pending to port to Prowler v3 branch labels May 6, 2024
@pedrooot pedrooot merged commit 9558461 into prowler-cloud:v3 May 6, 2024
11 checks passed
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.

None yet

3 participants