Escaped mysql character to prevent errors

This commit is contained in:
Mr McClain 2016-04-15 03:55:55 -05:00
parent ab9423ec1f
commit 3b8a62adaf

View File

@ -15,7 +15,7 @@ class IPBoardManager:
@staticmethod
def __santatize_username(username):
sanatized = username.replace(" ", "_")
sanatized = sanatized.replace("'", "_")
sanatized = username.replace("'", "\\'")
return sanatized.lower()
@staticmethod