We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/{org}.gpg
1 parent e772d12 commit 747d481Copy full SHA for 747d481
routers/web/org/home.go
@@ -6,6 +6,7 @@ package org
6
7
import (
8
"net/http"
9
+ "strings"
10
11
"code.gitea.io/gitea/models"
12
"code.gitea.io/gitea/models/db"
@@ -23,7 +24,14 @@ const (
23
24
25
// Home show organization home page
26
func Home(ctx *context.Context) {
- ctx.SetParams(":org", ctx.Params(":username"))
27
+ uname := ctx.Params(":username")
28
+
29
+ if strings.HasSuffix(uname, ".keys") || strings.HasSuffix(uname, ".gpg") {
30
+ ctx.NotFound("", nil)
31
+ return
32
+ }
33
34
+ ctx.SetParams(":org", uname)
35
context.HandleOrgAssignment(ctx)
36
if ctx.Written() {
37
return
0 commit comments