diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 17:59:23 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 17:59:23 -0700 |
commit | 924e1219548253a1eaf744c1ea61a8466ec98d63 (patch) | |
tree | 7326a8d6555f6391cc43db668c4fc9f6a7e1fe42 | |
parent | 659cacf5a9a2c7e0eed982e4684f84b47a3e2951 (diff) | |
download | git-924e1219548253a1eaf744c1ea61a8466ec98d63.tar.gz git-924e1219548253a1eaf744c1ea61a8466ec98d63.tar.xz |
Mark more characters shell-safe.
I still worry about just quoting things when passing it off to "ssh" or
"sh -c", so I'm being anal. But _, ^ and , are certainly ok and while
both ~ and @ can have speacial meaning to shell/ssh they are benign.
-rw-r--r-- | connect.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -57,7 +57,9 @@ static char *shell_safe(char *url) ['A'...'Z'] = 1, ['.'] = 1, ['/'] = 1, ['-'] = 1, ['+'] = 1, - [':'] = 1 + [':'] = 1, ['_'] = 1, + ['@'] = 1, [','] = 1, + ['~'] = 1, ['^'] = 1, }; while ((c = *n++) != 0) { |