mirror of https://github.com/cowrie/cowrie.git
Fix input beginning with spaces
git-svn-id: https://kippo.googlecode.com/svn/trunk@27 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
parent
990071ab61
commit
a06c4794c6
|
@ -52,7 +52,7 @@ class HoneyPotShell(object):
|
|||
|
||||
def lineReceived(self, line):
|
||||
print 'CMD: %s' % line
|
||||
cmdAndArgs = line.split(' ', 1)
|
||||
cmdAndArgs = line.strip().split(' ', 1)
|
||||
if len(cmdAndArgs) > 1:
|
||||
cmd, args = cmdAndArgs
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue