mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 21:40:17 +02:00
Escaped mysql character to prevent errors
This commit is contained in:
parent
ab9423ec1f
commit
3b8a62adaf
@ -15,7 +15,7 @@ class IPBoardManager:
|
||||
@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