diff --git a/pandora_console/godmode/users/user_management.php b/pandora_console/godmode/users/user_management.php index 7a5abb8503..4fa30a253e 100644 --- a/pandora_console/godmode/users/user_management.php +++ b/pandora_console/godmode/users/user_management.php @@ -985,7 +985,7 @@ html_print_table($userManagementTable); $vcard_data = []; $vcard_data['version'] = '3.0'; -$vcard_data['firstName'] = $user_info['fullname']; +$vcard_data['firstName'] = io_safe_output($user_info['fullname']); $vcard_data['lastName'] = ''; $vcard_data['middleName'] = ''; $vcard_data['workPhone'] = $user_info['phone']; diff --git a/pandora_console/include/javascript/qrcode.js b/pandora_console/include/javascript/qrcode.js index 4f664b4659..33f38e1b6f 100644 --- a/pandora_console/include/javascript/qrcode.js +++ b/pandora_console/include/javascript/qrcode.js @@ -2413,22 +2413,11 @@ date: 2018-05-14 15:05:04 }); } + console.log(vCard); formattedVCardString += "FN" + encodingPrefix + ":" + e(formattedName) + nl(); formattedVCardString += - "N" + - encodingPrefix + - ":" + - e(vCard.lastName) + - ";" + - e(vCard.firstName) + - ";" + - e(vCard.middleName) + - ";" + - e(vCard.namePrefix) + - ";" + - e(vCard.nameSuffix) + - nl(); + "N" + encodingPrefix + ":" + e(vCard.firstName) + nl(); if (vCard.nickname && majorVersion >= 3) { formattedVCardString +=