Trim white space before and after username and password and before encrypting when adding a client password

This commit is contained in:
johnnyq
2023-06-22 10:23:44 -04:00
parent 9d86c41bcb
commit db9c102f53
3 changed files with 9 additions and 9 deletions

View File

@@ -3,8 +3,8 @@ $client_id = intval($_POST['client_id']);
$name = sanitizeInput($_POST['name']);
$description = sanitizeInput($_POST['description']);
$uri = preg_replace("(^https?://)", "", sanitizeInput($_POST['uri']));
$username = encryptLoginEntry($_POST['username']);
$password = encryptLoginEntry($_POST['password']);
$username = encryptLoginEntry(trim($_POST['username']));
$password = encryptLoginEntry(trim($_POST['password']));
$otp_secret = sanitizeInput($_POST['otp_secret']);
$note = sanitizeInput($_POST['note']);
$important = intval($_POST['important']);