diff --git a/agent/post/client.php b/agent/post/client.php index 9bf10c10..e9de29c3 100644 --- a/agent/post/client.php +++ b/agent/post/client.php @@ -1390,22 +1390,25 @@ if (isset($_POST["export_client_pdf"])) { Description Username Password + TOTP URI "; while ($row = mysqli_fetch_array($sql_credentials)) { $credential_name = nullable_htmlentities($row["credential_name"]); - $credential_description = nullable_htmlentities($row["credential_description"]); + $credential_description = getFallback(nullable_htmlentities($row["credential_description"])); $credential_username = nullable_htmlentities(decryptCredentialEntry($row["credential_username"])); $credential_password = nullable_htmlentities(decryptCredentialEntry($row["credential_password"])); - $credential_uri = nullable_htmlentities($row["credential_uri"]); + $credential_totp_secret = getFallback(nullable_htmlentities($row['credential_otp_secret'])); + $credential_uri = getFallback(nullable_htmlentities($row["credential_uri"])); $html .= " $credential_name $credential_description $credential_username $credential_password + $credential_totp_secret $credential_uri "; }