List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:May 13 2004 12:56am
Subject:Re: security and extended ascii characters
View as plain text  
Chris W wrote:
> In an effort to make sure no binary data is maliciously submitted via a 
> form I have code the makes sure all characters in any input field are 
> with in the range of a space to a "~".  However now that I am getting 
> some users of my site from Europe, that are having problems submitting 
> some extended characters.  I don't have the time to localize this site 
> for every language but I would like to make it so European users can 
> enter the character that you don't find in the English alphabet.  So I 
> was wondering what other ascii values I need to allow so users in Europe 
> won't have these problems?

Chris:

You need to use mysql_real_escape_string() on user input before you insert it. 
Then there will be no need on character code range limitations.

-- 
Sasha Pachev
Create online surveys at http://www.surveyz.com/
Thread
security and extended ascii charactersChris W12 May
  • Re: security and extended ascii charactersSasha Pachev13 May