mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Tasks] Crash fix with data input sanitization (#2629)
This commit is contained in:
+1
-1
@@ -192,7 +192,7 @@ std::string Strings::Escape(const std::string &s)
|
||||
bool Strings::IsNumber(const std::string &s)
|
||||
{
|
||||
try {
|
||||
auto r = stod(s);
|
||||
auto r = stoi(s);
|
||||
return true;
|
||||
}
|
||||
catch (std::exception &) {
|
||||
|
||||
Reference in New Issue
Block a user