Menu

#2 Illegal character in the title generation breaks the search page

1.10
closed
None
Theme
Medium
1.0.0
True
2022-04-06
2020-08-15
No

In the theme-content file, in the blng_theme_content_get_title() function, when is_search, the replace pushes some illegal character in the title even if strip is true.

A possible solution is replace with this:
if($strip) {
$replaces = array('[searchquery]' => get_search_query());
}
else {
$replaces = array('[searchquery]' => '' .
get_search_query() .
'
');
}

Could be the case to add a title escape when strip is true.

Discussion

  • Marisa Monaco

    Marisa Monaco - 2020-09-01
    • status: *open --> fixed
    • assigned_to: Marisa Monaco
     
  • Marisa Monaco

    Marisa Monaco - 2020-09-01
    • Fixed in Repository: False --> True
     
  • Rocco Marco Guglielmi

    • status: fixed --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB