When I try to save a user with a username containing a denied character such as < or >, Joomla shows a validation error. However, the error message does not display the < and > characters, even though they are included in the language string.
6.1
The validation error should display all the denied characters defined in the language string, including < and >.
Save failed with the following error: Please enter a valid username. No space at beginning or end, at least 2 characters, must not have the following characters: < > \ " ' % ; ( ) & and be less than 150 characters long.
I would expect the error message to show all the characters that are not allowed in the username, including < and >.
The actual message shown is:
Please enter a valid username. No space at beginning or end, at least 2 characters, must not have the following characters: \ " ' % ; ( ) & and be less than 150 characters long.
The corresponding language string is:
JLIB_DATABASE_ERROR_VALID_AZ09="Please enter a valid username. No space at beginning or end, at least %d characters, must not have the following characters: < > \ " ' % ; ( ) & and be less than 150 characters long."
Joomla 6.1.3
PHP: 8.4.23
It looks like the < and > characters are being removed when Joomla displays the validation message.
The message should ideally display the same list of denied characters as defined in the language string, so users can clearly see which characters are not allowed.
| Labels |
Added:
No Code Attached Yet
bug
|
||
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-10-01 09:42:47 |
| Closed_By | ⇒ | muhme |
Hello @alikon, do you think Joomla's user table validation is silently removing < and > ?