mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-10-06 06:50:16 +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;
|
string[i] = replaceWith;
|
||||||
}
|
}
|
||||||
|
else if(string[i] > 127) // non ASCII
|
||||||
|
{
|
||||||
|
string[i] = replaceWith;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user