kubo/core
Thomas Gardner 3e824412d9 commands/cli: fix parsing of incorrect permutations
parseOpts now does some preliminary path screening to prevent
command sequences like

	`ipfs <hash> cat`

from succeeding. The tests affected by this have been slightly altered,
but should be restored once parseOpts is decoupled from path analysis.

Command suggestion printing has also been factored into a single
function.

Fixes: #2501
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-04-05 21:53:21 +10:00
..
commands commands/cli: fix parsing of incorrect permutations 2016-04-05 21:53:21 +10:00
corehttp gateway: enforce allowlist for path prefixes 2016-04-04 16:31:57 -04:00
corenet update utp and cleanup more godeps along the way 2016-03-29 19:18:14 -07:00
corerepo repo-stat 2016-03-04 23:45:03 +00:00
corerouting update utp and cleanup more godeps along the way 2016-03-29 19:18:14 -07:00
coreunix clean deprecated Key.Pretty() 2016-03-25 12:05:45 +01:00
mock update utp and cleanup more godeps along the way 2016-03-29 19:18:14 -07:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
bootstrap_test.go update utp and cleanup more godeps along the way 2016-03-29 19:18:14 -07:00
bootstrap.go update utp and cleanup more godeps along the way 2016-03-29 19:18:14 -07:00
builder.go update utp and cleanup more godeps along the way 2016-03-29 19:18:14 -07:00
core_test.go Use gx vendored go-ipfs-utils where possible 2016-02-12 17:21:40 -08:00
core.go update utp and cleanup more godeps along the way 2016-03-29 19:18:14 -07:00
pathresolver_test.go Add test to detect invalid path 2015-07-04 02:50:15 +07:00
pathresolver.go dns: update dns command docs 2016-03-03 17:06:10 +01:00