Commit b03b44a3 authored by sgjj's avatar sgjj

sql注入问题

parent 7170fece
...@@ -200,6 +200,9 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction { ...@@ -200,6 +200,9 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
return; return;
} }
} }
if(sqlFilter(orderby)){
orderby = "id";
}
PageBean page = new PageBean(); PageBean page = new PageBean();
//根据文章编号查询栏目详情模版 //根据文章编号查询栏目详情模版
CategoryEntity column = (CategoryEntity) categoryBiz.getEntity(Integer.parseInt(article.getContentCategoryId())); CategoryEntity column = (CategoryEntity) categoryBiz.getEntity(Integer.parseInt(article.getContentCategoryId()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment