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: