Re: [PATCH] MySQL Escape String (another one)
Vincent CHAVANIS <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm +0 for this patch as it. There will be a compatibility breaker with Mysql < 4 as the mysql_real_escape_string as been implemented in mysql 4. We already had this discussion 4 years back with the stipe's patch. (http://www.mail-archive.com/[email protected]/msg05072.html) This was mainly reject by this, but we are now in 2009 :-) hopping everyone have updated their mysql version. IMO, The idea would be to implement a new bool config variable to use or not the mysql_real_escape_string() function. BTW, we may all know that this function will use a connection to the DB and by consequences will load the Mysql server. Vincent. Donald Jackson a écrit : > Hi everyone, > > Just posting this patch in case anyone wants to use it. It escapes the > source address string to make it MySQL safe on the connection. > > In hindsight possibly not perfect implementation but it does the job. > > Thanks, > -- > Donald Jackson > http://www.ddj.co.za/ > donaldjster(a)gmail.com <http://gmail.com>