xml/xslt: shellescape() the filename that is passed it
previously, checking an xml/xslt file called "foo bar.xml" would fail
This commit is contained in:
parent
469e4efd0a
commit
2616623bb9
@ -26,7 +26,7 @@ endif
|
|||||||
|
|
||||||
function! SyntaxCheckers_xml_GetLocList()
|
function! SyntaxCheckers_xml_GetLocList()
|
||||||
|
|
||||||
let makeprg="xmllint --xinclude --noout --postvalid %"
|
let makeprg="xmllint --xinclude --noout --postvalid " . shellescape(expand("%:p"))
|
||||||
let errorformat='%E%f:%l:\ error\ :\ %m,
|
let errorformat='%E%f:%l:\ error\ :\ %m,
|
||||||
\%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m,
|
\%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m,
|
||||||
\%W%f:%l:\ warning\ :\ %m,
|
\%W%f:%l:\ warning\ :\ %m,
|
||||||
|
@ -21,7 +21,7 @@ endif
|
|||||||
|
|
||||||
function! SyntaxCheckers_xslt_GetLocList()
|
function! SyntaxCheckers_xslt_GetLocList()
|
||||||
|
|
||||||
let makeprg="xmllint --xinclude --noout --postvalid %"
|
let makeprg="xmllint --xinclude --noout --postvalid " . shellescape(expand("%:p"))
|
||||||
let errorformat='%E%f:%l:\ error\ :\ %m,
|
let errorformat='%E%f:%l:\ error\ :\ %m,
|
||||||
\%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m,
|
\%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m,
|
||||||
\%W%f:%l:\ warning\ :\ %m,
|
\%W%f:%l:\ warning\ :\ %m,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user