Skip to content

Commit

Permalink
correctly URI encode email body in tunnel req
Browse files Browse the repository at this point in the history
  • Loading branch information
rtertiaer committed Jun 6, 2024
1 parent ba328d6 commit 949e103
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion amplipi/updater/static/js/update-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ async function requestSupportTunnel() {

body = await res.text();
$('#support-tunnel-detail').text(body);
$('#support-tunnel-email').attr('href', `mailto:support@micro-nova.com?subject=Support%20tunnel%20request&body=${body.replaceAll('\n', '%0D%0A')}`);

$('#support-tunnel-email').attr(
'href',
`mailto:support@micro-nova.com?subject=Support%20tunnel%20request&body=${encodeURIComponent(body)}`
);
$('#support-tunnel-detail-caption').removeClass("d-none");
}

Expand Down

0 comments on commit 949e103

Please sign in to comment.