mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-26 00:58:11 -07:00
upgrade go-msgauth
This commit is contained in:
+6
-1
@@ -83,7 +83,12 @@ func parseHeaderParams(s string) (map[string]string, error) {
|
||||
return params, errors.New("dkim: malformed header params")
|
||||
}
|
||||
|
||||
params[strings.TrimSpace(key)] = strings.TrimSpace(value)
|
||||
trimmedKey := strings.TrimSpace(key)
|
||||
_, present := params[trimmedKey]
|
||||
if present {
|
||||
return params, errors.New("dkim: duplicate tag name")
|
||||
}
|
||||
params[trimmedKey] = strings.TrimSpace(value)
|
||||
}
|
||||
return params, nil
|
||||
}
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ func queryDNSTXT(domain, selector string, txtLookup txtLookupFunc) (*queryResult
|
||||
func parsePublicKey(s string) (*queryResult, error) {
|
||||
params, err := parseHeaderParams(s)
|
||||
if err != nil {
|
||||
return nil, permFailError("key syntax error: " + err.Error())
|
||||
return nil, permFailError("key record error: " + err.Error())
|
||||
}
|
||||
|
||||
res := new(queryResult)
|
||||
|
||||
Vendored
+1
-1
@@ -10,7 +10,7 @@ github.com/GehirnInc/crypt/md5_crypt
|
||||
# github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
|
||||
## explicit
|
||||
github.com/docopt/docopt-go
|
||||
# github.com/emersion/go-msgauth v0.6.8
|
||||
# github.com/emersion/go-msgauth v0.7.0
|
||||
## explicit; go 1.18
|
||||
github.com/emersion/go-msgauth/dkim
|
||||
# github.com/ergochat/confusables v0.0.0-20201108231250-4ab98ab61fb1
|
||||
|
||||
Reference in New Issue
Block a user