Skip to content
Browse files

shellescape url

  • Loading branch information...
1 parent 9a2949b commit 784de2122c457d6e45e60b1d4c45b6fa12024c8a @gmarik gmarik committed Oct 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/github-search.vim
View
4 plugin/github-search.vim
@@ -75,10 +75,10 @@ func! GHquery(q)
let l:from = 'http://github.com/api/v2/json/repos/search/'.l:term
if executable("curl")
- let cmd = 'curl --fail -s -o '.shellescape(l:to).' '.l:from
+ let cmd = 'curl --fail -s -o '.shellescape(l:to).' '.shellescape(l:from)
elseif executable("wget")
let temp = shellescape(tempname())
- let cmd = 'wget -q -O '.temp.' '.l:from. ' && mv -f '.temp.' '.shellescape(l:to)
+ let cmd = 'wget -q -O '.temp.' '.shellescape(l:from). ' && mv -f '.temp.' '.shellescape(l:to)
if (has('win32') || has('win64'))
let cmd = substitute(cmd, 'mv -f ', 'mv /Y ') " change force flag
let cmd = '"'.cmd.'"' " enclose in quotes so && joined cmds work

0 comments on commit 784de21

Please sign in to comment.
Something went wrong with that request. Please try again.