Forums

Bug: Usernames w/ spaces

Quick find code: 278-279-352-66253565

Mr  Beast10

Mr  Beast10

Posts: 9 Bronze Posts by user Forum Profile RuneMetrics Profile
The Forums do not properly handle usernames with spaces when clicking on a member's avatar from the postbit. Clicking on a member's avatar should take you to their RuneMetrics profile, however if the member has a space in their username, it will return a "user not found" error.

https://i.imgur.com/nyrB2Ek.png

...app/overview/player/Mr%C2%A0%C2%A0Beast10 -> invalid
...app/overview/player/mr%20%20beast10 -> valid

20-May-2022 02:26:38 - Last edited on 20-May-2022 02:35:41 by Mr  Beast10

Tranq
Nov
fmod Member
2007

Tranq

Forum Moderator Posts: 61,815 Emerald Posts by user Forum Profile RuneMetrics Profile
Mr  Beast10 said :
The Forums do not properly handle usernames with spaces when clicking on a member's avatar from the postbit. Clicking on a member's avatar should take you to their RuneMetrics profile, however if the member has a space in their username, it will return a "user not found" error.



Fixed your link to Imgur for you... There has always been an issue with multi-spaced names but never experienced one for single space

Edit: there is a difference between Mr Beast10 and Mr Beast10. To the named eye they look similar but they aren't.

People used to sucker folk in the wilderness by claiming their stats were weaker than they were cause they're alt account had fewer spaces in it. The alt had like 45 magic and 57 range. The main account had 99's in both and it was the main they were pking on.
When the day becomes the night and the sky becomes the sea, when the clock strikes heavy and there’s no time for tea; and in our darkest hour, before my final rhyme, she will come back home to Wonderland and turn back the hands of time.

20-May-2022 18:17:23 - Last edited on 20-May-2022 18:21:39 by Tranq

Mr  Beast10

Mr  Beast10

Posts: 9 Bronze Posts by user Forum Profile RuneMetrics Profile
Hey Tranq! Thank you for fixing that for me, it was definitely driving me crazy. So I initially thought the issue was unique to me because of the double spaces in my name (one space used to be a period but got replaced by a space many years ago) but I confirmed that this issue is not unique to double-spaced usernames by clicking on a few different forum members that had spaces in their names.

It seems the issue is related to the way in which the programmers handle empty spaces - as you can see in my initial post there are some discrepancies in how these spaces are handled throughout the site.

https://apps.runescape.com/runemetrics/app/overview/player/ mr%20%20beast10 works while https://apps.runescape.com/runemetrics/app/overview/player/ Mr%C2%A0%C2%A0Beast10 does not. The underlying issue here appears to be that spaces are handled differently (as %C2%A0 rather than %20 ).

Just to confirm this is not an isolated issue, you could go to this thread and click on the OP's avatar - https://secure.runescape.com/m=forum/c=qnEulPkZZ3I/forums?278,279,828,66252907

Properly encoded URIs use %20 to indicate a space. I hope this information can help the developers resolve the issue.

20-May-2022 22:54:58 - Last edited on 20-May-2022 23:00:01 by Mr  Beast10

Spearmint30
Apr Member 2012

Spearmint30

Posts: 23,350 Opal Posts by user Forum Profile RuneMetrics Profile
Yeah, this issue has been around for a bit now.

%C2%A0 is a non-breaking space
%20 is a (normal) space

Wrong encoding used, as you mentioned.

EDIT: Also, it's not just broken on the avatar, but the "RuneMetrics Profile" link when hovering over the users' display name is also affected.

EDIT2: Clicking a users' display name or the "Forum Profile" link, though is working, encodes the spaces as %A0 which is equivalent to %C2%A0 in UTF-8. Changing the %A0's to %20's also works, soooo... "don't fix it if it ain't broken" on that one or propose it to be encoded correctly for continuity/completeness?

To be completely fair, the Forums existed looong before display names could be changed and spaces were converted to underscores (and vice versa) back then as well if my memory is serving me correctly, so these little things probably got lost in the mix if I had to guess.
Spearmint30

¤
Food scientists have finally managed to remove the mint flavor from gum! The ex-spearmint was a success!
¤

22-May-2022 03:31:13 - Last edited on 22-May-2022 03:47:21 by Spearmint30

The contents of this message have been hidden.

22-May-2022 03:43:45

Quick find code: 278-279-352-66253565 Back to Top