mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-11 08:20:57 +00:00
Fix for forage crash
This commit is contained in:
1 parent
b392d16808
commit
a3b54e5cae
2 files changed
+11
-7
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user