From aa186476167c4ef38cee139adf3efb5cc6214db6 Mon Sep 17 00:00:00 2001 From: "pastripodi@owncloud.com" Date: Wed, 18 Dec 2019 22:28:28 +0100 Subject: [PATCH] use rawurldecode for allowing "+" in guests emails --- lib/Controller/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/UsersController.php b/lib/Controller/UsersController.php index a450cf87..be501ae3 100644 --- a/lib/Controller/UsersController.php +++ b/lib/Controller/UsersController.php @@ -114,7 +114,7 @@ public function __construct( */ public function create($email, $displayName) { $errorMessages = []; - $email = \trim(\urldecode($email)); + $email = \trim(\rawurldecode($email)); $username = \strtolower($email); if (empty($email) || !$this->mailer->validateMailAddress($email)) {