Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fcfe6d8 authored by Alexandre Roux's avatar Alexandre Roux
Browse files

Escape display name

parent 93e8f30b
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -313,9 +313,9 @@ class UserService {
	private function addNewUserToLDAP(string $displayName, string $recoveryEmail, string $username, string $userEmail, string $password): void {
		$connection = $this->LDAPConnectionService->getLDAPConnection();
		$base = $this->LDAPConnectionService->getLDAPBaseUsers()[0];
		
		$newUserDN = "username=$username," . $base;
		
		$displayName = htmlspecialchars($displayName);
		$quota = $this->getDefaultQuota() * 1024 * 1024;
		
		$newUserEntry = [