13
0

Make Session::session_name_is_legal less magical

This commit is contained in:
Nikolaus Gullotta 2020-06-23 14:27:42 -05:00
parent b9ae71a35e
commit 76c7e87c02
No known key found for this signature in database
GPG Key ID: C1580877951565A3

View File

@ -6763,9 +6763,9 @@ Session::update_latency_compensation (bool force_whole_graph, bool called_from_b
const std::string
Session::session_name_is_legal (const string& path)
{
char illegal_chars[] = { '/', '\\', ':', ';' };
const string illegal_chars = "/\\:;";
for (int i = 0; i < 4; ++i) {
for (int i = 0; i < illegal_chars.length(); ++i) {
if (path.find (illegal_chars[i]) != string::npos) {
return std::string (1, illegal_chars[i]);
}