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

Commit 010e4f0

Browse files
author
Billy Clark
committed
french accents (and potentially any punctuation) were breaking the error handling.
1 parent e69644c commit 010e4f0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ function createMessage (code) {
6666
switch (code) {
6767
case 1:
6868
case 2:
69-
case 3: return '<?= $this->t('{material:mfa:u2f_error_unknown}') ?>';
70-
case 4: return '<?= $this->t('{material:mfa:u2f_error_wrong_key}') ?>';
71-
case 5: return '<?= $this->t('{material:mfa:u2f_error_timeout}') ?>';
69+
case 3: return <?= json_encode($this->t('{material:mfa:u2f_error_unknown}')) ?>;
70+
case 4: return <?= json_encode($this->t('{material:mfa:u2f_error_wrong_key}')) ?>;
71+
case 5: return <?= json_encode($this->t('{material:mfa:u2f_error_timeout}')) ?>;
7272
}
7373
}
7474

0 commit comments

Comments
 (0)