mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-06 12:51:41 +01:00
Escaped mysql character to prevent errors
This commit is contained in:
parent
e69744b7eb
commit
4ca9a96f8d
@ -17,7 +17,7 @@ class MumbleManager:
|
||||
@staticmethod
|
||||
def __santatize_username(username):
|
||||
sanatized = username.replace(" ", "_")
|
||||
sanatized = sanatized.replace("'", "-")
|
||||
sanatized = username.replace("'", "\\'")
|
||||
return sanatized
|
||||
|
||||
@staticmethod
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user