From 8c23453c9f987c1881363011e21b93e2d913dfab Mon Sep 17 00:00:00 2001 From: Mariusz B Date: Wed, 2 May 2018 01:58:50 +0200 Subject: [PATCH] Added .strip() --- web/ysoserial-generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ysoserial-generator.py b/web/ysoserial-generator.py index 53de481..8b9ecfa 100755 --- a/web/ysoserial-generator.py +++ b/web/ysoserial-generator.py @@ -428,7 +428,7 @@ def main(argv): num = 0 for cmd in config['command'].split(';'): num += 1 - generate('custom-cmd{}'.format(num), cmd) + generate('custom-cmd{}'.format(num), cmd.strip()) else: generate('custom', config['command']) else: