mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
escape strings before applying FuzzyString
This commit is contained in:
parent
f3f6338ed1
commit
1a311585be
|
@ -262,6 +262,7 @@ void CSqlScore::MapVote(int ClientID, const char* MapName)
|
|||
Tmp->m_ClientID = ClientID;
|
||||
Tmp->m_RequestedMap = MapName;
|
||||
str_copy(Tmp->m_aFuzzyMap, MapName, sizeof(Tmp->m_aFuzzyMap));
|
||||
sqlstr::ClearString(Tmp->m_aFuzzyMap, sizeof(Tmp->m_aFuzzyMap));
|
||||
sqlstr::FuzzyString(Tmp->m_aFuzzyMap);
|
||||
|
||||
void *VoteThread = thread_init(ExecSqlFunc, new CSqlExecData(MapVoteThread, Tmp));
|
||||
|
@ -357,6 +358,7 @@ void CSqlScore::MapInfo(int ClientID, const char* MapName)
|
|||
Tmp->m_ClientID = ClientID;
|
||||
Tmp->m_RequestedMap = MapName;
|
||||
str_copy(Tmp->m_aFuzzyMap, MapName, sizeof(Tmp->m_aFuzzyMap));
|
||||
sqlstr::ClearString(Tmp->m_aFuzzyMap, sizeof(Tmp->m_aFuzzyMap));
|
||||
sqlstr::FuzzyString(Tmp->m_aFuzzyMap);
|
||||
|
||||
void *InfoThread = thread_init(ExecSqlFunc, new CSqlExecData(MapInfoThread, Tmp));
|
||||
|
|
Loading…
Reference in a new issue