mirror of https://github.com/halo-dev/halo
fix: content Search page XSS injection problem (#1534)
parent
641e03e401
commit
e1737145ac
|
@ -74,7 +74,7 @@ public class ContentSearchController {
|
|||
final Page<PostListVO> posts = postService.convertToListVo(postPage);
|
||||
|
||||
model.addAttribute("is_search", true);
|
||||
model.addAttribute("keyword", keyword);
|
||||
model.addAttribute("keyword", HtmlUtils.htmlEscape(keyword));
|
||||
model.addAttribute("posts", posts);
|
||||
model.addAttribute("meta_keywords", optionService.getSeoKeywords());
|
||||
model.addAttribute("meta_description", optionService.getSeoDescription());
|
||||
|
|
Loading…
Reference in New Issue