Skip to content

Repo Topic Containing Backslash Leads to Javascript Error #31328

Closed
@kdumontnu

Description

@kdumontnu

Description

If you create a repo topic with a backslash you receive the following javascript error:

Error: Syntax error, unrecognized expression: [data-value="test\"]
    at Ha.error (jquery.js:1487:8)
    at Tu (jquery.js:2153:8)
    at Cc (jquery.js:2578:12)

It's unclear if this is getting through some escape code or if this indicates a larger issue.

To recreate, go to a repository -> manage topics -> "test" -> Enter

Gitea Version

gitea.com

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Screenshot 2024-06-11 at 5 41 41 PM

Git Version

No response

Operating System

No response

How are you running Gitea?

gitea.com

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions