LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-25-2012, 06:41 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
what is in a name? A Web DBMS question


Can someone who writes server side data base and related software please explain something to me?

Why is it that so many web applications will not accept names with hyphens "-" or periods "." or apostrophes " ' " in them. There are other characters that are common in people's names, but I'm primarily interested in those that are English language oriented. In addition to why please offer data base or similar code fragments, or web addresses for examples, that program around these issues.

Some examples:
Mary Reese-Jones
William St.Paul
Seamus O'Malley
(This names were fabricated for this posting. Any similarity to real persons is accidental and coincidental.)

In most cases, the names get squished into one long string:
Reesejones,
Stpaul,
Omalley

In other cases, the names become two parts, as:
Reese Jones,
St Paul, and
O Malley.
This implementation really confuses things when there is also a middle initial as:
Mary E Reese Jones,
William D St Paul, or
Seamus M O Malley.

I remember from COBOL that names were 'alpha' not 'character' data, but those days are gone with eight+three file names. I don't see a bona fide justification for this absurd application behavior other than something loose between the programmer's ears.

Comments?
~~~ 0;-/ Dan

Last edited by SaintDanBert; 06-25-2012 at 06:46 PM.
 
Old 06-26-2012, 07:46 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I will provide one possible explanation but I will let you search the web to find out the rest of the information you seek. Removing special characters is one method to mitigate SQL injection attacks, albeit not a good one.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DBMS and RAID Performance Triton46 Linux - Hardware 2 12-16-2011 09:51 AM
problems with SQLITE DBMS leochen Linux - Software 0 05-20-2004 08:51 PM
Installing PostgreSQL DBMS Hady Linux - Software 1 04-28-2004 05:44 AM
Postgres DBMS??! Hady Linux - Newbie 4 04-27-2004 03:19 PM
which DBMS to learn rvijay17 Linux - General 11 03-17-2003 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration