aboutsummaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 17:59:23 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 17:59:23 -0700
commit924e1219548253a1eaf744c1ea61a8466ec98d63 (patch)
tree7326a8d6555f6391cc43db668c4fc9f6a7e1fe42 /connect.c
parent659cacf5a9a2c7e0eed982e4684f84b47a3e2951 (diff)
downloadgit-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.
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/connect.c b/connect.c
index 075683e83..3d4b31d34 100644
--- a/connect.c
+++ b/connect.c
@@ -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) {