Fix adding user with single quote in password

Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
This commit is contained in:
Maximilian Krög 2026-03-18 15:11:24 +01:00
parent 9d67a225f9
commit ebac48183b
No known key found for this signature in database
GPG Key ID: 093352DE4ADAEA2C

View File

@ -3554,7 +3554,7 @@ class Privileges
$hashedPassword = $_POST['pma_pw'];
}
$createUserReal = sprintf($createUserStmt, $hashedPassword);
$createUserReal = sprintf($createUserStmt, $this->dbi->escapeString($hashedPassword));
$createUserShow = sprintf($createUserStmt, '***');
}
} else {