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

Commit cb6ceaf

Browse files
author
Billy Clark
committed
privacy violation
1 parent 2e569a1 commit cb6ceaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

themes/material/core/loginuserpass.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,23 @@ function onRecaptchaLoad() {
8888
</div>
8989

9090
<?php
91-
$errorCode = htmlentities($this->data['errorcode'] ?? null);
91+
$errorCode = $this->data['errorcode'] ?? null;
9292
if ($errorCode == 'WRONGUSERPASS') {
9393
$errorMessageKey = $this->data['errorparams'][1] ?? '{material:login:error_wronguserpass}';
9494
$errorMessageTokens = $this->data['errorparams'][2] ?? null;
9595

96-
$message = htmlentities($this->t($errorMessageKey, $errorMessageTokens));
96+
$message = $this->t($errorMessageKey, $errorMessageTokens);
9797
?>
9898
<p class="mdl-color-text--red error">
9999
<i class="material-icons">error</i>
100100

101101
<span class="mdl-textfield mdl-typography--caption">
102-
<?= $message ?>
102+
<?= htmlentities($message) ?>
103103
</span>
104104
</p>
105105

106106
<script>
107-
ga('send','event','error','<?= $errorCode ?>','<?= $username ?>','<?= $message ?>');
107+
ga('send','event','error',<?= json_encode($errorCode) ?>,'message',<?= json_encode($message) ?>);
108108
</script>
109109
<?php
110110
}

0 commit comments

Comments
 (0)