Make Session::session_name_is_legal less magical
This commit is contained in:
parent
b9ae71a35e
commit
76c7e87c02
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user