fortify:跨站点脚本

bqujaahr  于 2021-06-30  发布在  Java
关注(0)|答案(0)|浏览(175)
@Controller
public class RestController {
  @GET
  public String returnString() {
     String str = "hello"; 
     return "hi " + str;         //here is the issue
}

fortify将字符串连接标记为跨站点脚本。如何更改此连接以使其不跨站点脚本。我试过使用string.concat,但还是一样的问题。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题