Skip to content

Bad HTML encoding in blames #17492

Closed
@sibzou

Description

@sibzou

Gitea Version

1.15.6

Git Version

2.33.1

Operating System

Arch Linux

How are you running Gitea?

Using gitea official builds from dl.gitea.io/gitea. It's the gitea-1.15.6-linux-amd64 executable.

Database

SQLite

Can you reproduce the bug on the Gitea demo site?

Yes, here : https://try.gitea.io/issuereporter287/repo

Log Gist

No response

Description

Reproduction :

  • create a new repo in the web interface
  • commit a new file in this repo and put special characters in the commit like <, > or '
  • push the commit in gitea
  • look at the new file blame in the web interface

Result : the special characters of the commit text are badly encoded on the blame page.

I tested by commiting <yes> l'apo. It is displayed as &lt;yes&gt; l&#39;apo on the web page.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions