mirror of
https://github.com/knadh/listmonk.git
synced 2024-12-29 18:33:43 +08:00
Fix '&' encoding in tracked URLs before saving in the DB. Closes #844.
This commit is contained in:
parent
9107edf867
commit
c84837f8cb
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue