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:
desaster 2009-11-18 21:05:10 +00:00
parent 990071ab61
commit a06c4794c6
1 changed files with 1 additions and 1 deletions

View File

@ -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: