some fixes
This commit is contained in:
parent
796be03e9b
commit
219ca5cadb
3 changed files with 5 additions and 3 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/Unknwon/com"
|
||||
"github.com/gogits/gogs/pkg/markup"
|
||||
|
||||
api "code.gitea.io/sdk/gitea"
|
||||
|
||||
|
@ -50,7 +51,7 @@ func Search(ctx *context.APIContext) {
|
|||
ID: users[i].ID,
|
||||
UserName: users[i].Name,
|
||||
AvatarURL: users[i].AvatarLink(),
|
||||
FullName: users[i].FullName,
|
||||
FullName: markup.Sanitize(users[i].FullName),
|
||||
}
|
||||
if ctx.IsSigned {
|
||||
results[i].Email = users[i].Email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue