From 75642d6d736a3874ad6a14c7f4465ff50435d124 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 29 Oct 2020 00:05:11 +0100 Subject: [PATCH] Added dash to permissible characters in stream name --- lib/stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stream.cpp b/lib/stream.cpp index 6e0067cb..e53f8cae 100644 --- a/lib/stream.cpp +++ b/lib/stream.cpp @@ -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);