Fixed: pet spells, possible sql injection, increased sql query size once again

This commit is contained in:
tomrus88 2008-11-04 18:23:52 +03:00
parent 11d5269853
commit 3e8ebb024f
5 changed files with 83 additions and 84 deletions

View file

@ -544,5 +544,6 @@ void WorldSession::SetAccountData(uint32 type, time_t time_, std::string data)
uint32 acc = GetAccountId();
CharacterDatabase.PExecute("DELETE FROM account_data WHERE account='%u' AND type='%u'", acc, type);
CharacterDatabase.escape_string(data);
CharacterDatabase.PExecute("INSERT INTO account_data VALUES ('%u','%u','%u','%s')", acc, type, (uint32)time_, data.c_str());
}