mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
add patch from MODAPP-86
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9653 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
f428a89f4c
commit
1c15146866
8 files changed
+86
-5
No files matched your search
@@ -3427,7 +3427,7 @@ static JSBool js_system(JSContext * cx, JSObject * obj, uintN argc, jsval * argv
|
||||
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
||||
|
||||
if (argc > 0 && (cmd = JS_GetStringBytes(JS_ValueToString(cx, argv[0])))) {
|
||||
*rval = INT_TO_JSVAL(system(cmd));
|
||||
*rval = INT_TO_JSVAL(switch_system(cmd, SWITCH_TRUE));
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user