diff --git a/auth_mysql.py b/auth_mysql.py index a22d37d..22e26e5 100755 --- a/auth_mysql.py +++ b/auth_mysql.py @@ -88,7 +88,7 @@ def ejabberd_in(): (size,) = struct.unpack('>h', input_length) logging.debug('size of data: %i'%size) - income=sys.stdin.read(size).split(':') + income=sys.stdin.read(size).split(':', 4) logging.debug("incoming data: %s"%income) return income