Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username with dots #9

Open
threadi opened this issue Jan 17, 2019 · 1 comment
Open

Username with dots #9

threadi opened this issue Jan 17, 2019 · 1 comment

Comments

@threadi
Copy link

threadi commented Jan 17, 2019

If a username contains a dot (e.g. "my.name") its impossible to save settings for this user.

Cause:
The HTML-Code is run through the renderer which converts "my.name" to "my_name" for the input-hidden-field.
After submitting the form the code checks for the unrendered username.


if (!$disabled && $_POST["id_" . $post_name]) {
                            if ($_POST[$post_chk]) {

My Solution for the moment: adding 2 lines before the POST is checked,

$post_name = str_replace(".", "_", $name);
$post_chk = str_replace(".", "_", $chk);
if (!$disabled && $_POST["id_" . $post_name]) {
                            if ($_POST[$post_chk]) { [..]
@shimmtak
Copy link

shimmtak commented Aug 9, 2021

I struggled the same issue all day long, and confirmed the solution was work.
I tried the plugin with Hogfather and it worked fine (without this issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants