提交 924e1219 编写于 作者: L Linus Torvalds

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.
上级 659cacf5
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册