equal
deleted
inserted
replaced
1203 $ hg clone malicious-proxycommand malicious-proxycommand-clone |
1203 $ hg clone malicious-proxycommand malicious-proxycommand-clone |
1204 updating to branch default |
1204 updating to branch default |
1205 abort: potentially unsafe url: 'ssh://-oProxyCommand=rm${IFS}non-existent/path' (in subrepo s) |
1205 abort: potentially unsafe url: 'ssh://-oProxyCommand=rm${IFS}non-existent/path' (in subrepo s) |
1206 [255] |
1206 [255] |
1207 |
1207 |
1208 also check for a pipe |
|
1209 |
|
1210 $ cd malicious-proxycommand |
|
1211 $ echo 's = [git]ssh://fakehost|shell/path' > .hgsub |
|
1212 $ hg ci -m 'change url to pipe' |
|
1213 $ cd .. |
|
1214 $ rm -r malicious-proxycommand-clone |
|
1215 $ hg clone malicious-proxycommand malicious-proxycommand-clone |
|
1216 updating to branch default |
|
1217 abort: potentially unsafe url: 'ssh://fakehost|shell/path' (in subrepo s) |
|
1218 [255] |
|
1219 |
|
1220 also check that a percent encoded '|' (%7C) doesn't work |
|
1221 |
|
1222 $ cd malicious-proxycommand |
|
1223 $ echo 's = [git]ssh://fakehost%7Cshell/path' > .hgsub |
|
1224 $ hg ci -m 'change url to percent encoded' |
|
1225 $ cd .. |
|
1226 $ rm -r malicious-proxycommand-clone |
|
1227 $ hg clone malicious-proxycommand malicious-proxycommand-clone |
|
1228 updating to branch default |
|
1229 abort: potentially unsafe url: 'ssh://fakehost|shell/path' (in subrepo s) |
|
1230 [255] |
|