Permalink
Browse files

allow backticks in commands, also fix potential exploit, of user runn…

…ing untrusted code hidden in some source
  • Loading branch information...
1 parent 51ee1a3 commit 8e091d6d5efff6b56683ede0827a761796503a67 @fishman fishman committed Mar 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/vimux.vim
View
@@ -38,7 +38,7 @@ function VimuxRunCommand(command, ...)
let l:autoreturn = a:1
endif
- let s:_VimTmuxCmd = a:command
+ let s:_VimTmuxCmd = substitute(a:command, '`', '\\`', 'g')
let s:_VimTmuxCmdAutoreturn = l:autoreturn
if l:autoreturn == 1
@@ -57,7 +57,7 @@ function RunVimTmuxCommand(command, ...)
let l:autoreturn = a:1
endif
- let s:_VimTmuxCmd = a:command
+ let s:_VimTmuxCmd = substitute(a:command, '`', '\\`', 'g')
let s:_VimTmuxCmdAutoreturn = l:autoreturn
if l:autoreturn == 1

0 comments on commit 8e091d6

Please sign in to comment.