summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-08 00:59:23 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-08 00:59:23 (GMT)
commit924e1219548253a1eaf744c1ea61a8466ec98d63 (patch)
tree7326a8d6555f6391cc43db668c4fc9f6a7e1fe42 /connect.c
parent659cacf5a9a2c7e0eed982e4684f84b47a3e2951 (diff)
downloadgit-924e1219548253a1eaf744c1ea61a8466ec98d63.zip
git-924e1219548253a1eaf744c1ea61a8466ec98d63.tar.gz
git-924e1219548253a1eaf744c1ea61a8466ec98d63.tar.bz2
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 075683e..3d4b31d 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) {