Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
xml/xslt: shellescape() the filename that is passed it
Browse files Browse the repository at this point in the history
previously, checking an xml/xslt file called "foo bar.xml" would fail
  • Loading branch information
scrooloose committed Jan 13, 2012
1 parent 469e4ef commit 2616623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntax_checkers/xml.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endif

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,
\%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m,
\%W%f:%l:\ warning\ :\ %m,
Expand Down
2 changes: 1 addition & 1 deletion syntax_checkers/xslt.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ endif

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,
\%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m,
\%W%f:%l:\ warning\ :\ %m,
Expand Down

0 comments on commit 2616623

Please sign in to comment.