Skip to content

Commit

Permalink
Sanitize resolved domains
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed May 16, 2022
1 parent 65562ec commit 25480eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/dnsres/dnsres.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"
"path"
"sort"
"strings"
"time"

"github.com/crazy-max/WindowsSpyBlocker/app/utils/config"
Expand Down Expand Up @@ -170,7 +171,7 @@ func getOnline(reportType string, ipOrDomain string) (Resolutions, error) {
result = append(result, Resolution{
Source: uri,
LastResolved: lastResolved,
IpOrDomain: resolve.Domain,
IpOrDomain: strings.TrimSpace(strings.ReplaceAll(resolve.Domain, `"`, ``)),
})
}

Expand Down

0 comments on commit 25480eb

Please sign in to comment.