mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2025-02-04 15:39:49 +00:00
GH-2065 Strip non ASCII chars
This commit is contained in:
parent
ce12f1a734
commit
3bdf63b0ee
@ -304,6 +304,10 @@ QString RemoveInvalidFilenameChars(QString string, QChar replaceWith)
|
||||
{
|
||||
string[i] = replaceWith;
|
||||
}
|
||||
else if(string[i] > 127) // non ASCII
|
||||
{
|
||||
string[i] = replaceWith;
|
||||
}
|
||||
}
|
||||
return string;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user