-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Allow plus (+) character in username #10086
Comments
cc @blizzz @nickvergessen @rullzer Opinion on this? |
causes behaviour problems, because " " is replaced with "+" on urlencode, so we would need to change this everywhere with the full trail of problems. |
Full ack. |
urlencode encodes " " as +, that's true. But it encodes '+' as '%2B', so I'm not sure if it would be such a big problem. A real problem exists, if you mix <?php
// Result: [email protected]
echo rawurldecode(urlencode('foo [email protected]')); All other combinations of rawurldecode and urlencode with '+' and ' ' are fine. And this problem already exists in the current code, so allowing the plus character is not that bad. |
👎 No fan of adding strange characters there. It's not supposed to be a user facing value anyhow. |
@blizzz I understand, that for commonly used usernames plus must sound as a strange character. But if you allow email addresses as usernames, what you are doing right now, it isn't. Even gmail allows + as a delimiter to tag mail addresses. |
No, that does not help at all. Apps need to know what they have to expect. So they would always have to implement for the biggest result set anyway. The thing is if we all of a sudden allow new characters that might cause undefined big problems for apps. Counting all the Nops in here I see 4 so far, so I'm closing this for now. |
Well, that's a pity. Now I have to think about a workaround 🤔. Maybe next time. |
Workaround: |
Some of my users really require this for google emails as user names ... maybe time to reconsider: owncloud/core#36613 |
Steps to reproduce
Expected behaviour
User should be created
Actual behaviour
An error message with text "Only the following characters are allowed in a username: "a-z", "A-Z", "0-9", and "_.@-'"" occured.
The text was updated successfully, but these errors were encountered: