$credential_field_too_long is too long to store", 'error'); redirect(); exit; } $name = escapeSql($_POST['name']); $description = escapeSql($_POST['description']); $uri = escapeSql($_POST['uri']); $uri_2 = escapeSql($_POST['uri_2']); $username = encryptCredentialEntry(trim($_POST['username'])); $password = encryptCredentialEntry(trim($_POST['password'])); $otp_secret = escapeSql($_POST['otp_secret']); $note = escapeSql($_POST['note']); $favorite = intval($_POST['favorite'] ?? 0); $contact_id = intval($_POST['contact'] ?? 0); $asset_id = intval($_POST['asset'] ?? 0);