Support » Plugin: Improved user search in backend » Update escape functions

  • Hello,

    Some hosters have made a move to PHP 5.5. This makes mysql_real_escape_string break; can you update the plugin to use the built-in wpdb escape function?

    Change from

    $qstr = mysql_real_escape_string($_GET[“s”]);

    to

    $qstr = $wpdb->_real_escape($_GET[“s”]);

    and probably

    $iusib_add = ” OR meta_key='”.implode(“‘ OR meta_key='”,$wpdb->escape($iusib_cma)).”‘”;

    to

    $iusib_add = ” OR meta_key='”.implode(“‘ OR meta_key='”,$wpdb->_real_escape($iusib_cma)).”‘”;

    thank you!

    https://wordpress.org/plugins/improved-user-search-in-backend/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m getting the same problem. Unfortunately, I updated the code you mentioned above and now I’m coming up with a new error:

    pe_string() expects parameter 2 to be string, array given in **/wp-includes/wp-db.php on line 1092

    Warning: implode(): Invalid arguments passed in **/wp-content/plugins/improved-user-search-in-backend/improved-user-search-in-backend.php on line 60

    But I DID get better search results! LOL

    Is this being supported anymore? I LOVE this plugin!!!

    Thank you!
    Arial

    Just dropped an e-mail to the developer. Hopefully, it’s still being supported.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update escape functions’ is closed to new replies.