mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-14 12:46:00 +00:00
Address some CodeQL security concerns (#35572)
Although there is no real security problem
This commit is contained in:
@@ -37,6 +37,11 @@ func (b *Base) PathParamInt64(p string) int64 {
|
||||
return v
|
||||
}
|
||||
|
||||
func (b *Base) PathParamInt(p string) int {
|
||||
v, _ := strconv.Atoi(b.PathParam(p))
|
||||
return v
|
||||
}
|
||||
|
||||
// SetPathParam set request path params into routes
|
||||
func (b *Base) SetPathParam(name, value string) {
|
||||
if strings.HasPrefix(name, ":") {
|
||||
|
Reference in New Issue
Block a user