forked from forgejo/forgejo
#1542 A way to skip TLS verify for SMTP authentication
This commit is contained in:
parent
384fbeca80
commit
ea454c21f7
9 changed files with 106 additions and 89 deletions
|
@ -48,10 +48,6 @@ var (
|
|||
Gitignores, Licenses, Readmes []string
|
||||
)
|
||||
|
||||
var (
|
||||
DescPattern = regexp.MustCompile(`https?://\S+`)
|
||||
)
|
||||
|
||||
func LoadRepoConfig() {
|
||||
// Load .gitignore and license files and readme templates.
|
||||
types := []string{"gitignore", "license", "readme"}
|
||||
|
@ -266,6 +262,10 @@ func (repo *Repository) IsOwnedBy(userID int64) bool {
|
|||
return repo.OwnerID == userID
|
||||
}
|
||||
|
||||
var (
|
||||
DescPattern = regexp.MustCompile(`https?://\S+`)
|
||||
)
|
||||
|
||||
// DescriptionHtml does special handles to description and return HTML string.
|
||||
func (repo *Repository) DescriptionHtml() template.HTML {
|
||||
sanitize := func(s string) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue