Yes because the input is already checked:
if (!check_name(gcp.name)) { gcp.master->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<±æµå> ±æµå À̸§ÀÌ ÀûÇÕÇÏÁö ¾Ê½À´Ï´Ù.")); return 0; }
This is not necessary because the function "check_name" already check if is an alphanumeric data.
So you can use the "normal version":
std::auto_ptr<SQLMsg> pmsg(DBManager::instance().DirectQuery("SELECT COUNT(*) FROM guild%s WHERE name = '%s'",
get_table_postfix(), gcp.name));
Have you used any fix for "injection" in guild_manager.cpp ?
If yes the problem is in CGuildManager::CreateGuild because the input is already checked by function check_name and you don't need any"fix".
I'm happy... Finally someone appreciates my small tool... >.<
In the original forum nobody said anything about it and for this reason I didn't post in other forums.
Thank you for sharing,
Misterioso