Skip to content
Snippets Groups Projects
Commit 49dc1c4e authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

Issue #3448936: Empty names that are only whitespace, add quoting for logs

parent dfeb169c
No related branches found
No related tags found
2 merge requests!312Issue # 3494493: Documentation: Document Maintainer Widget,!299Remove heroes from components field. Update CTA section and add variants.
......@@ -2163,8 +2163,8 @@ function drush_drupalorg_keycloak_integrity_check($log_filename = null) {
(bool) $drupal_user->status,
$drupal_user->created,
empty($drupal_user->timezone) ? '' : (string) $drupal_user->timezone,
!empty($drupal_user->firstname) ? $drupal_user->firstname : '',
!empty($drupal_user->lastname) ? $drupal_user->lastname : '',
!empty(trim($drupal_user->firstname)) ? $drupal_user->firstname : '',
!empty(trim($drupal_user->lastname)) ? $drupal_user->lastname : '',
empty($drupal_user->pre_auth_role),
(bool) $drupal_user->confirmed,
(bool) $drupal_user->tfa_created,
......@@ -2242,12 +2242,12 @@ function drush_drupalorg_keycloak_integrity_check($log_filename = null) {
continue;
}
if ($d_firstname !== $k_firstname) {
fprintf($log_file, "firstname_mismatch: (uid = %d, uuid = %s) d_firstname = %s, k_firstname = %s\n", $d_uid, $d_uuid, $d_firstname, $k_firstname);
fprintf($log_file, "firstname_mismatch: (uid = %d, uuid = %s) d_firstname = '%s', k_firstname = '%s'\n", $d_uid, $d_uuid, $d_firstname, $k_firstname);
$diff_counts['firstname_mismatch']++;
continue;
}
if ($d_lastname !== $k_lastname) {
fprintf($log_file, "lastname_mismatch: (uid = %d, uuid = %s) d_lastname = %s, k_lastname = %s\n", $d_uid, $d_uuid, $d_lastname, $k_lastname);
fprintf($log_file, "lastname_mismatch: (uid = %d, uuid = %s) d_lastname = '%s', k_lastname = '%s'\n", $d_uid, $d_uuid, $d_lastname, $k_lastname);
$diff_counts['lastname_mismatch']++;
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment