Closed TheSCREWEDSoftware closed 1 month ago
not find the creature and so no crash for first cmd .go creature name "Sinister Reflection" crash.
don't use quotes in it, that will mess it up. Obviously, we should check for it. But that is what is causing the crash
QueryResult result = WorldDatabase.Query("SELECT entry FROM creature_template WHERE name = \"{}\" LIMIT 1" , name.data());
Current Behaviour
If attempt to teleport to that npc and i would assume any other NPC that breaks SQL query due to the ' as example:
.go creature name Kaz'rogal
You will crash and get the following message.Expected Blizzlike Behaviour
I don't think blizzard at the time would make the try and expect of the query for someone using quotes within a apostrophe.
Source
No response
Steps to reproduce the problem
1) Start the server Auth and World 2) Open the client and join, make sure you have GM access commands. 3) .go creature name Kaz'rogal
or
4) . go creature name "Sinister Reflection"
They will both crash you worldserver with the same error.
Extra Notes
For me .go creature name Kaz'rogal
AC rev. hash/commit
Operating system
W10 64bit
Custom changes or Modules
|- mod-account-achievements |- mod-account-mounts |- mod-aoe-loot |- mod-assistant |- mod-breaking-news-override |- mod-eluna |- mod-no-hearthstone-cooldown |- mod-skip-dk-starting-area |- mod-transmog |- mod-weekendbonus |- mod-world-chat