Fix to undesired characters set to avoid altering original SDP from Dante devices.-

The comma (,) is used by Dante Devices in SDP and it was removed by the daemon.
This commit is contained in:
Andrea Bondavalli 2023-01-14 12:03:24 +01:00
parent 429948bc6d
commit b10350488f

View File

@ -29,7 +29,7 @@
#include "json.hpp"
static inline std::string remove_undesired_chars(const std::string& s) {
std::regex html_regex("[^ A-Za-z0-9:~._/=%\()\\r\\n\\t\?#-]?");
std::regex html_regex("[^ A-Za-z0-9:~.,_/=%\()\\r\\n\\t\?#-]?");
return std::regex_replace(s, html_regex, "");
}