Skip to content

Commit

Permalink
Fix '&amp' encoding in tracked URLs before saving in the DB. Closes #844
Browse files Browse the repository at this point in the history
.
  • Loading branch information
knadh committed Jul 11, 2022
1 parent 9107edf commit c84837f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/manager/manager.go
Expand Up @@ -686,6 +686,8 @@ func (m *Manager) exhaustCampaign(c *models.Campaign, status string) (*models.Ca
// trackLink register a URL and return its UUID to be used in message templates
// for tracking links.
func (m *Manager) trackLink(url, campUUID, subUUID string) string {
url = strings.ReplaceAll(url, "&", "&")

m.linksMut.RLock()
if uu, ok := m.links[url]; ok {
m.linksMut.RUnlock()
Expand Down

0 comments on commit c84837f

Please sign in to comment.