Commit d1390440 authored by Medicean's avatar Medicean

(Fix: Core) fix #199 thx @ier005

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