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

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 {