Skip to content

Conversation

@lunny
Copy link
Member

@lunny lunny commented Jan 28, 2026

No description provided.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 28, 2026
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Jan 28, 2026
}
for _, attr := range attrs {
if _, h.err = h.WriteString(" " + attr.Key + "=\"" + html.EscapeString(attr.Val) + "\""); h.err != nil {
if _, h.err = h.WriteString(" " + attr.Key + "=\"" + template.HTMLEscapeString(attr.Val) + "\""); h.err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

@wxiaoguang wxiaoguang marked this pull request as draft January 28, 2026 03:00
Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

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

Don't see why it is right.

If you think html.EscapeString is wrong, then Golang is wrong, and a lot of callers of "html.EscapeString" in Gitea's code base are all wrong.

@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/v1.25 lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged modifies/go Pull requests that update Go code type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants