1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00

Web editor: fix cannot create new file in subdirectory

This commit is contained in:
Unknwon
2016-08-29 00:10:21 -07:00
parent 429c92c0ce
commit 62b0dc4853
10 changed files with 15 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@@ -126,8 +126,8 @@ func (s *Sender) Send(from string, to []string, msg io.WriterTo) error {
return fmt.Errorf("NewClient: %v", err)
}
if !setting.MailService.DisableHelo {
hostname := setting.MailService.HeloHostname
if !opts.DisableHelo {
hostname := opts.HeloHostname
if len(hostname) == 0 {
hostname, err = os.Hostname()
if err != nil {