Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 02:27 pm EDT

Geeklog Forums

Apostrophe With User Name


Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
On a similar issue to Warren's post about spaces in user names, when my users sign up they can't use an apostrophe. So the names O'Brien or O'Connell have to be written as OBrien and OConnell. (This is an Irish website, so names beginning O'* are common.)
If someone does put in O'Brien it goes in to the profile as just O.
Any ideas?
Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The removal of single quotes is on purpose, to avoid SQL injections. But I guess we should be more verbose about it in this particular instance (i.e. warn the user that their username has been changed) ...

bye, Dirk
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
happy
Will do.
Thank you Dirk.

Shane
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

All times are EDT. The time is now 02:27 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content