Skip to content

Commit 25480eb

Browse files
committed
Sanitize resolved domains
1 parent 65562ec commit 25480eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/dnsres/dnsres.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"os"
1010
"path"
1111
"sort"
12+
"strings"
1213
"time"
1314

1415
"github.com/crazy-max/WindowsSpyBlocker/app/utils/config"
@@ -170,7 +171,7 @@ func getOnline(reportType string, ipOrDomain string) (Resolutions, error) {
170171
result = append(result, Resolution{
171172
Source: uri,
172173
LastResolved: lastResolved,
173-
IpOrDomain: resolve.Domain,
174+
IpOrDomain: strings.TrimSpace(strings.ReplaceAll(resolve.Domain, `"`, ``)),
174175
})
175176
}
176177

0 commit comments

Comments
 (0)