From c9fc0d41e73800c038a6068c58ec2c615014bed9 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 25 Jun 2015 23:21:47 +0300 Subject: [PATCH] Checker javac: _really_ fix shell escaping in custom_classpath_command. --- plugin/syntastic.vim | 2 +- syntax_checkers/java/javac.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index dd57417d..b61cdb41 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.6.0-107' +let g:_SYNTASTIC_VERSION = '3.6.0-108' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/java/javac.vim b/syntax_checkers/java/javac.vim index 5eeda9d3..f2f3ab72 100644 --- a/syntax_checkers/java/javac.vim +++ b/syntax_checkers/java/javac.vim @@ -134,7 +134,7 @@ function! SyntaxCheckers_java_javac_GetLocList() dict " {{{1 for sub in [['\V%FILE_PATH%', expand('%:p')], \ ['\V%FILE_NAME%', expand('%:t')], \ ['\V%FILE_DIR%', expand('%:p:h')]] - let classpath_command = substitute(classpath_command, sub[0], syntastic#util#shexpand(sub[1]), 'g') + let classpath_command = substitute(classpath_command, sub[0], syntastic#util#shescape(sub[1]), 'g') endfor let lines = syntastic#util#system(classpath_command) if syntastic#util#isRunningWindows() || has('win32unix')