mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 18:58:38 +00:00
Rename context.Query to context.Form (#16562)
This commit is contained in:
@@ -50,7 +50,7 @@ func UpdatePublicKeyInRepo(ctx *context.PrivateContext) {
|
||||
// AuthorizedPublicKeyByContent searches content as prefix (leak e-mail part)
|
||||
// and returns public key found.
|
||||
func AuthorizedPublicKeyByContent(ctx *context.PrivateContext) {
|
||||
content := ctx.Query("content")
|
||||
content := ctx.Form("content")
|
||||
|
||||
publicKey, err := models.SearchPublicKeyByContent(content)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user