Skip to content

Commit bb23673

Browse files
committed
trim whitespace from sitemap URLs before appending
1 parent 8a4851b commit bb23673

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sitemap.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ func (s *S) parse(url string, content string) []string {
520520
if !matches {
521521
continue
522522
}
523+
urlSetURL.Loc = strings.TrimSpace(urlSetURL.Loc)
523524
s.urls = append(s.urls, urlSetURL)
524525
}
525526
}

0 commit comments

Comments
 (0)