Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 17fa786

Browse files
author
Billy Clark
committed
messages with single ticks were not getting sent properly
1 parent cb6ceaf commit 17fa786

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

themes/material/mfa/prompt-for-mfa-backupcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</div>
6969

7070
<script>
71-
ga('send','event','error','backupcode','<?= $message ?>');
71+
ga('send','event','error','backupcode',<?= json_encode($message) ?>);
7272
</script>
7373
<?php
7474
}

themes/material/mfa/prompt-for-mfa-totp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
</div>
6868

6969
<script>
70-
ga('send','event','error','totp','<?= $message ?>');
70+
ga('send','event','error','totp',<?= json_encode($message) ?>);
7171
</script>
7272
<?php
7373
}

themes/material/mfa/prompt-for-mfa-u2f.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function createHiddenInput(name) {
107107
if (! empty($message)) {
108108
?>
109109
<script>
110-
ga('send','event','error','u2f','<?= $message ?>');
110+
ga('send','event','error','u2f',<?= json_encode($message) ?>);
111111
</script>
112112
<?php
113113
}

0 commit comments

Comments
 (0)