Fix bug 1894

This commit is contained in:
Steve Daulton 2018-07-03 00:58:41 +01:00
parent a06e561cb7
commit 1be17fc7a7
1 changed files with 6 additions and 0 deletions

View File

@ -453,6 +453,12 @@ void Tags::SetTag(const wxString & name, const wxString & value)
return;
}
// Tag name must be ascii
if (!name.IsAscii()) {
wxLogError("Tag rejected (Non-ascii character in name)");
return;
}
// All keys are uppercase
wxString key = name;
key.UpperCase();