Whitespaces in slug
-
Hi
When new user logs in with whitespaces after her login name, new blow was created with whitespaces in slug. My quick fix is
--- wpmuldap/lib/wpmu_ldap.functions.php.orig 2021-11-25 10:55:49.741703173 +0200 +++ wpmuldap/lib/wpmu_ldap.functions.php 2021-11-25 10:58:04.074494339 +0200 @@ -19,6 +19,9 @@ if (!isset($ldapUserData)) $ldapUserData = false; if (!isset($createBlog)) $createBlog = true; + // masse 25.11.2021 - sanitize $newUserName + $newUserName = trim($newUserName); + // Check to see if email is empty if ( empty($ldapUserData[LDAP_INDEX_EMAIL]) ) return new WP_Error('ldapcreate_emailempty', sprintf(__('<strong>ERROR</strong>: <strong>%s</strong> does not have an email address associated with the ldap record. All wordpress accounts must have a unique email address.'),$newUserName));
- The topic ‘Whitespaces in slug’ is closed to new replies.