From e0a8b89069d1c730c866adee045d27b3b270edfa Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 22 Aug 2014 14:19:53 +0200 Subject: [PATCH] Minor patch when trailing space is used with comma to split option items (e.g. '-C id, name') --- lib/core/option.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index ea35341af..14cbeea37 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1567,6 +1567,15 @@ def _cleanupOptions(): if conf.torType: conf.torType = conf.torType.upper() + if conf.col: + conf.col = re.sub(r"\s*,\s*", ",", conf.col) + + if conf.excludeCol: + conf.excludeCol = re.sub(r"\s*,\s*", ",", conf.excludeCol) + + if conf.binaryFields: + conf.binaryFields = re.sub(r"\s*,\s*", ",", conf.binaryFields) + threadData = getCurrentThreadData() threadData.reset()