mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
eval/api: don't allow the API to be called in the sandbox.
Identifying and maintaining a "secure" subset of the API would be too much busywork. So just disable the entire thing.
This commit is contained in:
@@ -6669,6 +6669,10 @@ static void float_op_wrapper(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
|
||||
static void api_wrapper(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
{
|
||||
if (check_restricted() || check_secure()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ApiDispatchWrapper fn = (ApiDispatchWrapper)fptr;
|
||||
|
||||
Array args = ARRAY_DICT_INIT;
|
||||
|
Reference in New Issue
Block a user