Escaped mysql character to prevent errors

This commit is contained in:
Mr McClain 2016-04-15 03:56:22 -05:00
parent 3b8a62adaf
commit e69744b7eb

View File

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