From 5df82bce2d60c1baa03378b16fb51e264c54a29b Mon Sep 17 00:00:00 2001 From: Erica Wright Date: Tue, 15 Oct 2019 16:33:28 +0000 Subject: [PATCH] Bug 1588315 - Firefox Monitor link encodes emails to handle special characters. r=MattN Differential Revision: https://phabricator.services.mozilla.com/D49300 --HG-- extra : moz-landing-system : lando --- browser/components/protections/content/monitor-card.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/components/protections/content/monitor-card.js b/browser/components/protections/content/monitor-card.js index 886383294ed2..74051a607d9a 100644 --- a/browser/components/protections/content/monitor-card.js +++ b/browser/components/protections/content/monitor-card.js @@ -109,7 +109,9 @@ export default class MonitorClass { * @return URL to Monitor website. */ buildMonitorUrl(email = null) { - return email ? `${MONITOR_SIGN_IN_URL}${email}` : MONITOR_URL; + return email + ? `${MONITOR_SIGN_IN_URL}${encodeURIComponent(email)}` + : MONITOR_URL; } renderContentForUserWithLogins(monitorData) {