From 94202ae78359cc7be5f00f0f3c4e2ee4e351b1d6 Mon Sep 17 00:00:00 2001 From: Stu Tomlinson Date: Thu, 31 Aug 2017 12:06:30 +0100 Subject: [PATCH] Fix to support passwords containing colon --- auth_mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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