Actions
Bug #4802
closedNumber based usernames break SEF pathing
Description
When SEF is enabled and the name is nothing but numbers it breaks reversing the URL. The reason is it thinks the number is a user_id, but it's actually the username
Updated by krileon about 10 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Fixed in MR !637
Numeric usernames will not SEF now. It will instead just use the user id. The reason for this is reversing numeric username requires a DB query on the numeric value on reversal. This means if the value actually is a user id it costs a query for no reason in addition to risking matching a user by mistake when it actually is just the id. For example if the username is 123 and you're trying to access the profile of the user with id 123 and their username is for example Bob you have a serious issue of determining who you're trying to access.
Actions