summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/user/user.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go
index 5a59fd7ca9..f9c308cfce 100644
--- a/routers/api/v1/user/user.go
+++ b/routers/api/v1/user/user.go
@@ -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