summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-10-25 13:26:14 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-10-25 13:26:14 +0800
commit219ca5cadbc9b56d47068becbc990298592bf4ee (patch)
tree4bf41a189abf45661613ac281d8a0156e9036a85 /routers
parent796be03e9b62154c9432622b8b4dbcef86a72a94 (diff)
downloadgitea-219ca5cadbc9b56d47068becbc990298592bf4ee.tar.gz
gitea-219ca5cadbc9b56d47068becbc990298592bf4ee.zip
some fixes
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