mirror of
https://github.com/axllent/mailpit.git
synced 2025-11-06 09:09:14 +02:00
Use path.Join() instead of url.JoinPath() for < 1.19 compatibility
This commit is contained in:
@@ -3,8 +3,8 @@ package config
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/url"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"strings"
|
||||
@@ -148,10 +148,7 @@ func VerifyConfig() error {
|
||||
return fmt.Errorf("Webroot cannot contain spaces (%s)", Webroot)
|
||||
}
|
||||
|
||||
s, err := url.JoinPath("/", Webroot, "/")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
s := path.Join("/", Webroot, "/")
|
||||
Webroot = s
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user