I]L x x P\L _g 35511 !1ҤZT]L >x @#x >x ` V K\L 0 `!x x !1ҤZ ld >x P]L `!x p!x "]L \]L a V ,cڬV \]L >x @#x >x ` V ~HڬV `\L I]L ]L 0 e&\L n [ !1ҤZ ']L %eڬV ]L "x \L ` V >x ` V >x ڬV l]L >x GڬV L h]L >x >x >x vڬV ڬV >x >x #x @#x \L &eڬV 4\L . V h f: h f: *h 0 &eڬV . O]L $x $x ]L $x %x $x ]L ]L ]L D]L O]L I]L ]L ]L ɞ\L !1ҤZ.]L Z\L ?\L H ]L !1ҤZ%x ]L `%x ]L .]L /]L 9]\L I]L ]L ?\L ]\L !1ҤZ ]L ]L .]L /]L R\L H'x ٬V ڬV @ ]L \L \L ٬V H'x 7'H'x ٬V ڬV @ ]L 7V:78Z !1ҤZ @\L p'x ڬV ]L ٬V @'x ٬V 8'x >x >x >x >x >x >x >x >x >x >x ?x ?x N?x {?x ?x ?x ?x ?x ! лx d @p٬V 8 `]L ٬V ))x ?x 9)x !1ҤZtSᓛx86_64 the homepage for invalid searches. * * @param string $reason The reason for redirecting away. * @param string $to_url The URL to redirect to. * * @return void */ private function redirect_away( $reason, $to_url = '' ) { if ( empty( $to_url ) ) { $to_url = \get_home_url(); } $this->redirect_helper->do_safe_redirect( $to_url, 301, 'Yoast Search Filtering: ' . $reason ); } /** * Limits the number of characters in the search query. * * @return void */ private function limit_characters() { // We retrieve the search term unescaped because we want to count the characters properly. We make sure to escape it afterwards, if we do something with it. $unescaped_s = \get_search_query( false ); // We then unslash the search term, again because we want to count the characters properly. We make sure to slash it afterwards, if we do something with it. $raw_s = \wp_unslash( $unescaped_s ); if ( \mb_strlen( $raw_s, 'UTF-8' ) > $this->options_helper->get( 'search_character_limit' ) ) { $new_s = \mb_substr( $raw_s, 0, $this->options_helper->get( 'search_character_limit' ), 'UTF-8' ); \set_query_var( 's', \wp_slash( \esc_attr( $new_s ) ) ); } } /** * Determines if a text string contains an emoji or not. * * @param string $text The text string to detect emoji in. * * @return bool */ private function has_emoji( $text ) { $emojis_regex = '/([^-\p{L}\x00-\x7F]+)/u'; \preg_match( $emojis_regex, $text, $matches ); return ! empty( $matches ); } }