Authored by 张帅

xss转义

... ... @@ -7,6 +7,7 @@ import com.yohobuy.platform.dal.grass.IGrassTopicDAO;
import com.yohobuy.platform.dal.grass.IGrassTopicGroupDAO;
import com.yohobuy.platform.dal.grass.model.TopicGroup;
import com.yohobuy.platform.grass.service.ITopicGroupService;
import com.yohobuy.platform.grass.util.HtmlUtils;
import com.yohobuy.platform.model.common.ApiResponse;
import com.yohobuy.platform.model.common.PageResponseVO;
import com.yohobuy.platform.model.grass.request.TopicGroupReq;
... ... @@ -59,7 +60,7 @@ public class TopicGroupServiceImpl implements ITopicGroupService {
Integer id = req.getId();
TopicGroup record = new TopicGroup();
record.setId(id);
record.setGroupName(req.getGroupName());
record.setGroupName(HtmlUtils.translate(req.getGroupName()));
record.setStatus(req.getStatus());
record.setImageUrl(req.getImageUrl() == null ? "" : req.getImageUrl());
if(id != null && id > 0 ){//修改
... ...