fix(Scripts/Commands): quote go creature name query safely (#26520)
This commit is contained in:
parent
4927c15f7e
commit
e7823750f9
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ public:
|
|||
std::string str = name.data(); // Making subtractions to the last character does not with in string_view
|
||||
WorldDatabase.EscapeString(str);
|
||||
|
||||
QueryResult result = WorldDatabase.Query("SELECT entry FROM creature_template WHERE name = \"{}\" LIMIT 1", str);
|
||||
QueryResult result = WorldDatabase.Query("SELECT entry FROM creature_template WHERE name = '{}' LIMIT 1", str);
|
||||
if (!result)
|
||||
{
|
||||
handler->SendErrorMessage(LANG_COMMAND_GOCREATNOTFOUND);
|
||||
|
|
|
|||
Loading…
Reference in a new issue