mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
sanitize clipboard string. closes #1992
This commit is contained in:
parent
a1b8926f51
commit
4cb916db86
|
@ -119,6 +119,7 @@ const char *CInput::GetClipboardText()
|
|||
SDL_free(m_pClipboardText);
|
||||
}
|
||||
m_pClipboardText = SDL_GetClipboardText();
|
||||
str_sanitize_cc(m_pClipboardText);
|
||||
return m_pClipboardText;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue