Page 1 of 1 [ 7 posts ] 

Confused-Fish
Veteran
Veteran

User avatar

Joined: 12 Jan 2008
Age: 39
Gender: Male
Posts: 946
Location: trapped in a jar

13 Apr 2009, 8:02 am

When i click on my name and go to my profile (this - http://www.wrongplanet.net/forums-profi ... 16230.html) and click on the "find all posts by Confused_Fish" button I end up with a page full of all the posts made by another member called "confused" (this - http://www.wrongplanet.net/forumssearch ... .html-Fish)

What's up with that?



Sora
Veteran
Veteran

User avatar

Joined: 15 Sep 2006
Gender: Female
Posts: 4,906
Location: Europe

13 Apr 2009, 8:06 am

It's due to the - or _


_________________
Autism + ADHD
______
The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it. Terry Pratchett


Confused-Fish
Veteran
Veteran

User avatar

Joined: 12 Jan 2008
Age: 39
Gender: Male
Posts: 946
Location: trapped in a jar

13 Apr 2009, 8:11 am

Thought it might be. does this count as a bug then?



lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 77
Gender: Male
Posts: 9,798
Location: Somerset UK

13 Apr 2009, 9:52 am

Confused-Fish wrote:
When i click on my name and go to my profile (this - http://www.wrongplanet.net/forums-profi ... 16230.html) and click on the "find all posts by Confused_Fish" button I end up with a page full of all the posts made by another member called "confused" (this - http://www.wrongplanet.net/forumssearch ... .html-Fish)

What's up with that?


Instead of:
http://www.wrongplanet.net/forumssearch-search_author-Confused.html-Fish
try:
http://www.wrongplanet.net/forumssearch-search_author-Confused_Fish.html

Yes, it's a bug. The software allows you to have a hyphen in your username, but then attempts to use a hypen to structure its clever URL reqests.

Replacing the hyphen with an underline works (tolerably, in most cases), because the underline is recognised as a wildcard (while it is ALSO allowed in usernames, making yet another bug!), and so matches a hyphen (or anything else... so the above will actually find "ConfusedPFish", as well, if such a user existed).


_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports." Kamran Nazeer


0_equals_true
Veteran
Veteran

User avatar

Joined: 5 Apr 2007
Age: 44
Gender: Male
Posts: 11,038
Location: London

13 Apr 2009, 10:49 am

why doesn't alex learn how htaccess works he could solve this problem in five minutes.



alex
Developer
Developer

User avatar

Joined: 13 Jun 2004
Age: 40
Gender: Male
Posts: 10,224
Location: Beverly Hills, CA

13 Apr 2009, 10:52 am

0_equals_true wrote:
why doesn't alex learn how htaccess works he could solve this problem in five minutes.


because there are 100 other things that also take 5 mins that i have to do first unless you want to show me.



0_equals_true
Veteran
Veteran

User avatar

Joined: 5 Apr 2007
Age: 44
Gender: Male
Posts: 11,038
Location: London

13 Apr 2009, 11:47 am

no problem. hyphen wasn't the best choice of delimiter, but you can work with the problem. PM me the htaccess file contents and i will fix it for you. Code fix is better, but you can patch it with just htaccess.