mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 06:20:16 +02:00
Escaped mysql character to prevent errors
This commit is contained in:
parent
4ca9a96f8d
commit
445c1e82e5
@ -32,7 +32,7 @@ class OpenfireManager:
|
||||
@staticmethod
|
||||
def __santatize_username(username):
|
||||
sanatized = username.replace(" ", "_")
|
||||
sanatized = sanatized.replace("'", "-")
|
||||
sanatized = username.replace("'", "\\'")
|
||||
return sanatized.lower()
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user