Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 130709

Double quote in append_search_query() not 5G/6G Firewall compatible

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 130709

Trending Articles