Support » Plugin: Highlight Search Terms » Double quote in append_search_query() not 5G/6G Firewall compatible

  • Resolved UnderWordPressure

    (@underwordpressure)


    Hi,
    when WP-Security Plugin is installed and the 5G / 6G Firewall rules are enabled, all search results run in 403 Error. The reason is, the value of hilite Parameter ist wrapped into double quotes.
    Fix: exchange of ddouble quotes in Line 107 in hlst.php will solve the problem.

    BEFORE:

    106   if ( self::have_search_terms() ) {
    107        $url = add_query_arg('hilite', urlencode( '"' . implode('","',self::$search_terms) . '"' ), $url);
    108    }

    AFTER:

    106   if ( self::have_search_terms() ) {
    107        $url = add_query_arg('hilite', urlencode( "'" . implode("','",self::$search_terms) . "'" ), $url);
    108    }

    regards

Viewing 1 replies (of 1 total)
  • Plugin Author RavanH

    (@ravanh)

    Hi, thanks for reporting this issue.

    Do you have a site where you implemented your patch and I can see/test it live?

Viewing 1 replies (of 1 total)
  • The topic ‘Double quote in append_search_query() not 5G/6G Firewall compatible’ is closed to new replies.