Commit d1390440 authored by Medicean's avatar Medicean

(Fix: Core) fix #199 thx @ier005

parent 30c8c546
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
> 有空会补补BUG、添添新功能。 > 有空会补补BUG、添添新功能。
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT. > 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
## `v(2.1.5)`
### 核心模块
* 修复 PHP4 命令执行语法错误 #199 (thx @ier005)
## 2019/07/16 `v(2.1.4)` ## 2019/07/16 `v(2.1.4)`
### 核心模块 ### 核心模块
......
{ {
"name": "antsword", "name": "antsword",
"version": "2.1.4", "version": "2.1.4.1",
"description": "中国蚁剑是一款跨平台的开源网站管理工具", "description": "中国蚁剑是一款跨平台的开源网站管理工具",
"main": "app.js", "main": "app.js",
"dependencies": { "dependencies": {
......
...@@ -76,8 +76,10 @@ module.exports = (arg1, arg2) => ({ ...@@ -76,8 +76,10 @@ module.exports = (arg1, arg2) => ({
}elseif(substr($d,0,1)!="/" && @class_exists("COM")){ }elseif(substr($d,0,1)!="/" && @class_exists("COM")){
$w=new COM('WScript.shell'); $w=new COM('WScript.shell');
$e=$w->exec($c); $e=$w->exec($c);
$ret=$e->StdOut()->ReadAll(); $so=$e->StdOut();
$ret.=$e->StdErr()->ReadAll(); $ret.=$so->ReadAll();
$se=$e->StdErr();
$ret.=$se->ReadAll();
print($ret); print($ret);
}else{ }else{
$ret = 127; $ret = 127;
......
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