summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--integrations/user_test.go1
-rw-r--r--models/user.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/integrations/user_test.go b/integrations/user_test.go
index 0a6fdd19d5..452ea2ddf0 100644
--- a/integrations/user_test.go
+++ b/integrations/user_test.go
@@ -90,6 +90,7 @@ func TestRenameReservedUsername(t *testing.T) {
"repo",
"template",
"user",
+ "search",
}
session := loginUser(t, "user2")
diff --git a/models/user.go b/models/user.go
index ce78e5bfce..2cef2e5dec 100644
--- a/models/user.go
+++ b/models/user.go
@@ -822,6 +822,7 @@ var (
".",
"..",
".well-known",
+ "search",
}
reservedUserPatterns = []string{"*.keys", "*.gpg"}
)