WordPress.org

Making WordPress.org

Ticket #1856: fix.diff

File fix.diff, 806 bytes (added by jeffSLOfish, 3 years ago)

Fix for this bug.

  • wordcamp.org/public_html/wp-content/plugins/camptix-attendance/addons/attendance.php

    diff --git wordcamp.org/public_html/wp-content/plugins/camptix-attendance/addons/attendance.php wordcamp.org/public_html/wp-content/plugins/camptix-attendance/addons/attendance.php
    index bed6038..968cd7c 100644
    class CampTix_Attendance extends CampTix_Addon { 
    198198                add_filter( 'posts_clauses', function( $clauses ) use ( $search ) {
    199199                        global $wpdb;
    200200
    201                         $search = $wpdb->esc_like( $search );
     201                        $search = $wpdb->esc_like( stripslashes( $search ) );
    202202
    203203                        $clauses['join'] .= "
    204204                                INNER JOIN $wpdb->postmeta tix_first_name ON ( ID = tix_first_name.post_id AND tix_first_name.meta_key = 'tix_first_name' )