Skip to content

Commit

Permalink
Core: use shlex splitting instead of whitespace splitting for client …
Browse files Browse the repository at this point in the history
…and server commands
  • Loading branch information
Berserker66 committed Sep 28, 2024
1 parent 8193fa1 commit ada2c01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MultiServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import operator
import pickle
import random
import shlex
import threading
import time
import typing
Expand Down Expand Up @@ -1150,7 +1151,7 @@ def __call__(self, raw: str) -> typing.Optional[bool]:
if not raw:
return
try:
command = raw.split()
command = shlex.split(raw, comments=False)
basecommand = command[0]
if basecommand[0] == self.marker:
method = self.commands.get(basecommand[1:].lower(), None)
Expand Down

0 comments on commit ada2c01

Please sign in to comment.