Fix for forage crash

This commit is contained in:
KimLS
2014-09-07 22:41:42 -07:00
parent b392d16808
commit a3b54e5cae
2 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ bool Database::DeleteAccount(const char* name) {
}
bool Database::SetLocalPassword(uint32 accid, const char* password) {
std::string query = StringFormat("UPDATE account SET password=MD5('%s') where id=%i;", password, accid);
std::string query = StringFormat("UPDATE account SET password=MD5('%s') where id=%i;", EscapeString(password).c_str(), accid);
auto results = QueryDatabase(query);