1
0
mirror of https://github.com/axllent/mailpit.git synced 2024-12-28 23:06:43 +02:00

Use path.Join() instead of url.JoinPath() for < 1.19 compatibility

This commit is contained in:
Ralph Slooten 2022-10-31 22:22:02 +13:00
parent d229b34d98
commit 1dfadda07e

View File

@ -3,8 +3,8 @@ package config
import ( import (
"errors" "errors"
"fmt" "fmt"
"net/url"
"os" "os"
"path"
"path/filepath" "path/filepath"
"regexp" "regexp"
"strings" "strings"
@ -148,10 +148,7 @@ func VerifyConfig() error {
return fmt.Errorf("Webroot cannot contain spaces (%s)", Webroot) return fmt.Errorf("Webroot cannot contain spaces (%s)", Webroot)
} }
s, err := url.JoinPath("/", Webroot, "/") s := path.Join("/", Webroot, "/")
if err != nil {
return err
}
Webroot = s Webroot = s
return nil return nil