Bug #2545
closedusernames containing utf8 characters cause profile urls based off username to fail
100%
Description
When a username contains a UTF8 character (ø for example) and the &user='USERNAME' URL parameter is used it results in urlencoding of the character and reaching the profile impossible. Typically is fine without SEF, but when SEF is used then username is passed instead of user_id resulting in failed navigation to profile.
Example
Username = testø
URL (Before): index.php?option=com_comprofiler&user='testø'
URL (After): index.php?option=com_comprofiler&user=%27test%F8%27
Result: "This profile does not exist or is no longer available"
https://www.joomlapolis.com/forum/154-advanced-members-support/164649-username-collation-trouble
Updated by beat over 14 years ago
- Status changed from New to Assigned
- Assignee set to krileon
- Target version set to CB 1.7
- Estimated time set to 1:00 h
Maybe an issue in CB's router.php ?
Or a joomla setting ?
Kyle,
Can you please provide a tested patch ?
Updated by krileon over 14 years ago
- Status changed from Assigned to Feedback
- Assignee changed from krileon to beat
The URL gets obscured before it even reaches CB. Place var_dump() at top of page for request parameters in comprofiler.php then viewing profile with the below URL for example results in the user being obscured even before CB touches it. CBs route doesn't appear to be doing anything (both functions commented out, same results).
index.php?option=com_comprofiler&task=userprofile&user='testø'&Itemid=2
The above results in the below.
index.php?option=com_comprofiler&task=userprofile&user=%27test%F8%27&Itemid=2
Updated by krileon over 14 years ago
Everything works perfectly fine with zero changes to the code in Chrome (likely Safari as well). It does not function in IE or FF however. Reviewing browser configuration I've Chrome configured to Western (ISO-8859-1) and FireFox is configured to the exact same, but doesn't work in FF. Chrome also leaves the URL alone wherein FF is consistently URL encoding it (including the single quotes).
Updated by beat over 14 years ago
- Status changed from Feedback to Rejected
- Target version deleted (
CB 1.7) - % Done changed from 0 to 100
I'm not able to reproduce in a correctly configured development site having Joomla 1.7 and mod_rewrite, using FF, IE8, Safari.
All works ok. Closing as rejected.