GetFileContentRef and GetPullRequestFiles build URLs via fmt.Sprintf without escaping paths or refs. If paths contain special characters (#, ?, spaces), the URL breaks.
Fix
Use url.PathEscape for file paths and url.QueryEscape for ref params in all Gitea client methods that accept user-provided paths.
## Problem
`GetFileContentRef` and `GetPullRequestFiles` build URLs via `fmt.Sprintf` without escaping paths or refs. If paths contain special characters (`#`, `?`, spaces), the URL breaks.
## Fix
Use `url.PathEscape` for file paths and `url.QueryEscape` for ref params in all Gitea client methods that accept user-provided paths.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
GetFileContentRefandGetPullRequestFilesbuild URLs viafmt.Sprintfwithout escaping paths or refs. If paths contain special characters (#,?, spaces), the URL breaks.Fix
Use
url.PathEscapefor file paths andurl.QueryEscapefor ref params in all Gitea client methods that accept user-provided paths.