Skip to content

Fix encoding for Matrix Webhooks (#37190)#37201

Merged
silverwind merged 1 commit intogo-gitea:release/v1.26from
GiteaBot:backport-37190-v1.26
Apr 13, 2026
Merged

Fix encoding for Matrix Webhooks (#37190)#37201
silverwind merged 1 commit intogo-gitea:release/v1.26from
GiteaBot:backport-37190-v1.26

Conversation

@GiteaBot
Copy link
Copy Markdown
Collaborator

Backport #37190 by @bircni

url.PathEscape unnecessarily encodes ! to %21, causing Matrix homeservers to reject the request with 401. Replace %21 back to ! after escaping.

Fixes #36012

`url.PathEscape` unnecessarily encodes ! to %21, causing Matrix
homeservers to reject the request with 401. Replace %21 back to ! after
escaping.

Fixes go-gitea#36012

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@GiteaBot GiteaBot added this to the 1.26.0 milestone Apr 13, 2026
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 13, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 13, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 13, 2026
@silverwind silverwind merged commit d1be5c3 into go-gitea:release/v1.26 Apr 13, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants