Summary
The HTML page generated by scripts/vulnerability_report.py declares an invalid charset value in generate_page():
- current:
charset=urf-8
- expected:
charset=utf-8
This makes the generated document declare an encoding that does not match the encoding used when the file is written.
Rationale
The report file is written with encoding="utf-8", so the generated HTML should declare the same encoding in its <meta http-equiv="content-type"> tag. Keeping these consistent avoids incorrect or ambiguous character encoding behavior in browsers and tools consuming the generated report.
Affected area
scripts/vulnerability_report.py
- Function:
generate_page()
Required change
Update the HTML header in the generated page so the charset is utf-8 instead of urf-8.
Acceptance criteria
- The generated HTML contains
charset=utf-8.
- The declared charset matches the file write encoding (
utf-8).
- No other report content or generation flow changes.
Backlinks
Requested by: @tisnik
Summary
The HTML page generated by
scripts/vulnerability_report.pydeclares an invalid charset value ingenerate_page():charset=urf-8charset=utf-8This makes the generated document declare an encoding that does not match the encoding used when the file is written.
Rationale
The report file is written with
encoding="utf-8", so the generated HTML should declare the same encoding in its<meta http-equiv="content-type">tag. Keeping these consistent avoids incorrect or ambiguous character encoding behavior in browsers and tools consuming the generated report.Affected area
scripts/vulnerability_report.pygenerate_page()Required change
Update the HTML header in the generated page so the charset is
utf-8instead ofurf-8.Acceptance criteria
charset=utf-8.utf-8).Backlinks
Requested by: @tisnik