Commit c4e81442 by 蒋勇

d

parent 7b3271b9
...@@ -50,7 +50,7 @@ module.exports = function (app) { ...@@ -50,7 +50,7 @@ module.exports = function (app) {
p = invokeObj["doexec"].apply(invokeObj, params); p = invokeObj["doexec"].apply(invokeObj, params);
} }
p.then(r => { p.then(r => {
var rs=JSON.stringify(r) var rs=JSON.stringify(r);
.replace(/%5C/g,'%5C%5C') .replace(/%5C/g,'%5C%5C')
.replace(/%22/g,"%5C%22") .replace(/%22/g,"%5C%22")
.replace(/%2F/g,'%5C%2F') .replace(/%2F/g,'%5C%2F')
...@@ -58,7 +58,7 @@ module.exports = function (app) { ...@@ -58,7 +58,7 @@ module.exports = function (app) {
.replace(/%0C/g,'%5Cf') .replace(/%0C/g,'%5Cf')
.replace(/%0A/g,'%5Cn') .replace(/%0A/g,'%5Cn')
.replace(/%0D/g,'%5Cr') .replace(/%0D/g,'%5Cr')
.replace(/%09/g,'%5Ct'))) .replace(/%09/g,'%5Ct');
res.end(rs); res.end(rs);
}); });
}); });
......
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