My website fails to return using info for usernames with hyphens

Hello, recently a user of my site informed me that they could access their public profile page! Interestingly enough, every other account seems to work. The only unique part of their name is a hyphen in the middle. Doing some debugging, I found that it isn’t an issue with MySQL:

What else could it be? Is this a known issue with SQL langs and hyphens?

1 Like

Might be a confusion of variable names … binding the id to be compared to a username?

Just a quick reference.

Hello all, thanks for your responses, but after doing some investigating, it appears to be an issue with our routing package. I’m talking with the guy behind it to find a solution. Thanks!

GG, I was about to reply with a link to escaping characters haha

3 Likes