diff options
author | Unknwon <u@gogs.io> | 2015-08-29 15:45:58 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-29 15:45:58 +0800 |
commit | ea454c21f776a0fd4f7d3a64218bea6e743e5dce (patch) | |
tree | 5c2b6e55a0cf9e6cf9b7bc21a1437a1bc7ab5655 /models/repo.go | |
parent | 384fbeca801180c2f156e916bf69324590472e03 (diff) | |
download | gitea-ea454c21f776a0fd4f7d3a64218bea6e743e5dce.tar.gz gitea-ea454c21f776a0fd4f7d3a64218bea6e743e5dce.zip |
#1542 A way to skip TLS verify for SMTP authentication
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/repo.go b/models/repo.go index 15ddaa2eda..9934ec5ab0 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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 { |