[wp-trac] [WordPress Trac] #27466: WordPress 3.9 issue - database connection lost on mysql_real_escape_string() / AJAX?

WordPress Trac noreply at wordpress.org
Thu Mar 20 22:21:36 UTC 2014


#27466: WordPress 3.9 issue - database connection lost on
mysql_real_escape_string() / AJAX?
--------------------------+-----------------------
 Reporter:  harmr         |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+-----------------------

Comment (by nacin):

 While esc_sql() is indeed the 1:1 replacement for
 mysqli_real_escape_string(), you should be preparing your queries whenever
 possible. Not preparing queries is about a decade behind best practices in
 web development.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27466#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list