Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Insecure Web App (IWA)
import java.nio.file.Paths;
import java.security.Principal;
import java.util.*;
import org.springframework.web.util.HtmlUtils;

/**
* Controller for product pages
Expand Down Expand Up @@ -88,7 +89,7 @@ String GetControllerName() {
@ResponseBody
public ResponseEntity<String> getKeywordsContent(@Param("keywords") String keywords) {

String retContent = "Product search using: " + keywords;
String retContent = "Product search using: " + HtmlUtils.htmlEscape(HtmlUtils.htmlUnescape(String.valueOf(keywords)));

return ResponseEntity.ok().body(retContent);
}
Expand Down