|
|
|
@@ -7,6 +7,7 @@ package repo |
|
|
|
|
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"html/template" |
|
|
|
"net/http" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/models" |
|
|
|
@@ -118,7 +119,7 @@ func CreateFork(ctx *context.APIContext, form api.CreateForkOption) { |
|
|
|
forker = org |
|
|
|
} |
|
|
|
|
|
|
|
fork, err := repo_service.ForkRepository(ctx.User, forker, repo, repo.Name, repo.Description, repo.Alias) |
|
|
|
fork, err := repo_service.ForkRepository(ctx.User, forker, repo, repo.Name, template.HTMLEscapeString(repo.Description), repo.Alias) |
|
|
|
if err != nil { |
|
|
|
ctx.Error(http.StatusInternalServerError, "ForkRepository", err) |
|
|
|
return |
|
|
|
|