Plugin Directory

Changeset 546644


Ignore:
Timestamp:
05/20/2012 04:58:04 PM (14 years ago)
Author:
hawk__
Message:

Updated call to mysql_escape_string() which is deprecated

Location:
postgresql-for-wordpress/trunk/pg4wp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • postgresql-for-wordpress/trunk/pg4wp/driver_mysql.php

    r135401 r546644  
    3333        { return mysql_fetch_assoc($result); }
    3434    function wpsql_escape_string($s)
    35         { return mysql_escape_string($s); }
     35        { return mysql_real_escape_string($s); }
     36    function wpsql_real_escape_string($s,$c=NULL)
     37        { return mysql_real_escape_string($s,$c); }
    3638    function wpsql_get_server_info()
    3739        { return mysql_get_server_info(); }
  • postgresql-for-wordpress/trunk/pg4wp/driver_pgsql.php

    r546567 r546644  
    5353    function wpsql_fetch_assoc($result) { return pg_fetch_assoc($result); }
    5454    function wpsql_escape_string($s) { return pg_escape_string($s); }
    55     function wpsql_real_escape_string($s,$c) { return pg_escape_string($s); }
     55    function wpsql_real_escape_string($s,$c=NULL) { return pg_escape_string($s); }
    5656    function wpsql_get_server_info() { return '5.0.30'; } // Just want to fool wordpress ...
    5757    function wpsql_result($result, $i, $fieldname)
Note: See TracChangeset for help on using the changeset viewer.