Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fix Exploid 40k : Acest fix blocheaza noul exploit(SQL inject messenger,guild etc)
- Sursa Game
- 1.Deschidem db.cpp si cautam :
- void DBManager::Query(const char * c_pszFormat, ...)
- inlocuim toata functia cu :
- void DBManager::Query(const char * c_pszFormat, ...)
- {
- char szQuery[4096];
- va_list args;
- va_start(args, c_pszFormat);
- vsnprintf(szQuery, sizeof(szQuery), c_pszFormat, args);
- va_end(args);
- std::string sQuery(szQuery);
- m_sql.AsyncQuery(sQuery.substr(0,sQuery.find_first_of(";")==-1?sQuery.length(): sQuery.find_first_of(";")).c_str());
- }
- 2.Cautam :
- SQLMsg * DBManager::DirectQuery(const char * c_pszFormat, ...)
- inlocuim toata funtia cu :
- SQLMsg * DBManager::DirectQuery(const char * c_pszFormat, ...)
- {
- char szQuery[4096];
- va_list args;
- va_start(args, c_pszFormat);
- vsnprintf(szQuery, sizeof(szQuery), c_pszFormat, args);
- va_end(args);
- std::string sQuery(szQuery);
- return m_sql_direct.DirectQuery(sQuery.substr(0, sQuery.find_first_of(";") == -1 ? sQuery.length() : sQuery.find_first_of(";")).c_str());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement