Added dash to permissible characters in stream name

This commit is contained in:
Thulinma 2020-10-29 00:05:11 +01:00
parent 6b9e9d0c3b
commit 75642d6d73

View file

@ -191,7 +191,7 @@ void Util::sanitizeName(std::string &streamname){
streamname.erase(i, streamname.end());
break;
}
if (!isalpha(*i) && !isdigit(*i) && *i != '_' && *i != '.'){
if (!isalpha(*i) && !isdigit(*i) && *i != '_' && *i != '.' && *i != '-'){
streamname.erase(i);
}else{
*i = tolower(*i);