[wp-trac] [WordPress Trac] #11819: Use mysql_real_escape_string instead of addslashes

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 21 02:17:11 UTC 2010


#11819: Use mysql_real_escape_string instead of addslashes
--------------------------+-------------------------------------------------
 Reporter:  hakre         |        Owner:  ryan    
     Type:  defect (bug)  |       Status:  reopened
 Priority:  high          |    Milestone:  3.0     
Component:  Security      |      Version:  2.5     
 Severity:  critical      |   Resolution:          
 Keywords:  dev-feedback  |  
--------------------------+-------------------------------------------------
Changes (by secondv):

 * cc: secondv (added)


Comment:

 I would imagine that a query such as:


 {{{
 SET character_set_results = 'utf8', character_set_client = 'utf8',
 character_set_connection = 'utf8', character_set_server = 'utf8';
 }}}

 Would work.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11819#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list