Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAltamash Shaikh <altu9594@gmail.com>2022-09-01 14:40:00 +0300
committerGitHub <noreply@github.com>2022-09-01 14:40:00 +0300
commit1198bdc38781b5a867ec1f354ce9be99a128180f (patch)
treeac7671e6652fb82323f82461c8b66514ea7737c8
parentfd0cd32c58726e77f908f2f19565b7c7f8096219 (diff)
Added code to unsanitize user email on update (#19698)
-rw-r--r--plugins/UsersManager/API.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php
index 77bad6036b..1c1933b32e 100644
--- a/plugins/UsersManager/API.php
+++ b/plugins/UsersManager/API.php
@@ -880,6 +880,7 @@ class API extends \Piwik\Plugin\API
$_isPasswordHashed = false,
$passwordConfirmation = false
) {
+ $email = Common::unsanitizeInputValue($email);
$requirePasswordConfirmation = self::$UPDATE_USER_REQUIRE_PASSWORD_CONFIRMATION;
self::$UPDATE_USER_REQUIRE_PASSWORD_CONFIRMATION = true;