mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #09663
[Bug 1026618] Re: The registration link can fail if a user's name contains a diacritic
Turns out that fixing get_new_username() was the best thing to do.
Attached is a patch for this bug to branch master.
I've tested it on:
Windows + IIS7 + PHP 5.3.13 + Postgres 8.3 (DB Running on Ubuntu 10.04)
Windows + IIS7 + PHP 5.3.13 + Postgres 9.1 (DB Running on Windows)
Ubuntu 12.04 + PHP 5.3.10 + Postgres 8.3 (DB Running on Ubuntu 10.04)
Basically the substr and strtolower operations on the user's name needed
to use the mb_ style equivalents to not upset the DB.
But now this shows a new bug, you can't do the login with a username
containing a diacritic on Windows. A quick test on Linux shows this
works fine on version 1.5 and what is on branch master at the moment.
I imagine the problem with the login is similar.
** Patch added: "0001-Us-mb_-style-functions-on-new-usernames-containing-d.patch"
https://bugs.launchpad.net/mahara/+bug/1026618/+attachment/3237199/+files/0001-Us-mb_-style-functions-on-new-usernames-containing-d.patch
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1026618
Title:
The registration link can fail if a user's name contains a diacritic
Status in Mahara ePortfolio:
Triaged
Bug description:
Please note this only seems to effect PHP running on Windows, not
Ubuntu.
In the following configuration:
Windows Server 2008 R2
IIS 7
Postgresql 9.1.4
PHP 5.3.13
Mahara 1.5.1
The registration link ("Hi Chéese, Thank you for registering an
account on Mahara. Please follow this link to complete the signup
process: ...") won't work if the user has a diacritic in their name.
Clicking the link results in "A nonrecoverable error occured. This
probably means you have encountered a bug in the system"
The email address confirmation message ("Hi Chéese, Thank you for
registering an account on Mahara. Please select the following link to
confirm your email address. The ...") and the message sent to the
administrator to approve the registration work perfectly.
Attached is a relevant snippet from the PHP error log.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1026618/+subscriptions
References