mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 05:20:16 +02:00
Escaped mysql character to prevent errors
This commit is contained in:
parent
35e69847ea
commit
4edcfafc8a
@ -49,7 +49,7 @@ class smfManager:
|
||||
@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