Commit 9819e7b1 by 宋毅

tj

parent 02d48c44
...@@ -42,6 +42,13 @@ class tmqueryCtl extends CtlBase { ...@@ -42,6 +42,13 @@ class tmqueryCtl extends CtlBase {
if (!pobj.actionBody) { if (!pobj.actionBody) {
return system.getResult(null, "actionBody不能为空"); return system.getResult(null, "actionBody不能为空");
} }
if (pobj.requrl && pobj.requrl.indexOf('|') >= 0) {
return system.getResult(null, "非法请求!");
}
var tmpReqUrl = pobj.requrl.replace('|', '').replace(' ', '');
if (tmpReqUrl.length != pobj.requrl.length) {
return system.getResult(null, "非法请求!!");
}
var reqobj = { var reqobj = {
"actionProcess": pobj.actionProcess || "", "actionProcess": pobj.actionProcess || "",
"actionType": pobj.actionType || "", "actionType": pobj.actionType || "",
...@@ -61,6 +68,7 @@ class tmqueryCtl extends CtlBase { ...@@ -61,6 +68,7 @@ class tmqueryCtl extends CtlBase {
var oldActionType = reqobj.actionType; var oldActionType = reqobj.actionType;
var oldActionBody = reqobj.actionBody; var oldActionBody = reqobj.actionBody;
var oldIsUser = reqobj.isUser; var oldIsUser = reqobj.isUser;
if (reqobj.isDecryptUser == "yes") { if (reqobj.isDecryptUser == "yes") {
reqobj.actionType = "decryptStr"; reqobj.actionType = "decryptStr";
reqobj.isUser = "no"; reqobj.isUser = "no";
......
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