Skip to content

Fix invalid UTF-8 charset declaration in vulnerability report HTML output #2012

Description

@coderabbitai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions