• Resolved brurez

    (@brurez)


    Hi,

    I am getting a SQL error when the post title have quotes like “Bruno’s Beach House”.
    In the file WP_ES.php line 138: $term = esc_sql($term) adds a backslash before the quote. Then on the line 142: $term = $wpdb->esc_like( $term ) adds another backslash to escape the other backslash.

    Thank you for the plugin!

    https://www.ads-software.com/plugins/wp-extended-search/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sumit Singh

    (@5um17)

    Hi brurez,

    I am sorry for the delay and thank you very much. You’ve been a great help 2nd time ??
    Current code is copy of WordPress core with modifications for taxonomy, post meta etc. Now I see WordPress updated code a lot and I need to update as well. So I will fix this in next release and will let you know.

    For now please comment out line number 142 to get rid of this error.
    //$term = $wpdb->esc_like( $term );

    Thanks

    Plugin Author Sumit Singh

    (@5um17)

    Hi brurez,

    This issue has been fixed in version 1.1.2 please update to latest version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Escaping slashes twice error’ is closed to new replies.