Fix #1708 - Don't modify linters or register fixers in the sandbox

This commit is contained in:
w0rp
2018-07-17 21:39:50 +01:00
parent 7952ebe77e
commit 5453e0e1a4
3 changed files with 57 additions and 1 deletions
+3
View File
@@ -242,6 +242,9 @@ endfunction
" Add a function for fixing problems to the registry.
" (name, func, filetypes, desc, aliases)
function! ale#fix#registry#Add(name, func, filetypes, desc, ...) abort
" This command will throw from the sandbox.
let &equalprg=&equalprg
if type(a:name) != type('')
throw '''name'' must be a String'
endif