]> git.cworth.org Git - notmuch-wiki/commitdiff
Added more special characters to be escaped.
authorJesse Rosenthal <jrosenthal@jhu.edu>
Fri, 28 Jan 2011 14:58:14 +0000 (09:58 -0500)
committerJesse Rosenthal <jrosenthal@jhu.edu>
Fri, 28 Jan 2011 14:58:14 +0000 (09:58 -0500)
Escape "*" for wild card and "!" just in case as well.

remoteusage.mdwn

index 24d28ef043a269b241658ebed76f20de7d983061..7a219920138534f6faeee098e81e79c7b5bf9d01 100644 (file)
@@ -81,7 +81,7 @@ be necessary in the furture.
         shift
        # we need to a little sanitizing of msg ids so the shell
         # doesn't mangle them
-        ARGS=`echo $@ | sed 's/\\$/\\\\$/g'`
+       ARGS=`echo $@ | sed 's/[\\$\\*\\!]/\\\&/g'`
         $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS}
     }