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