Fix URI validator to include '.'.

This commit is contained in:
Michał Słomkowski 2016-04-18 01:46:54 +02:00
parent 11e93bb138
commit a0e636a592

View File

@ -12,7 +12,7 @@ sip::IncomingConnectionValidator::IncomingConnectionValidator(std::string validU
boost::split(separateUris, validUriExpression, boost::is_any_of("\t "));
for (auto &uri : separateUris) {
boost::replace_all(uri, ".", "\\.");
boost::replace_all(uri, "*", "[\\+\\w]*");
boost::replace_all(uri, "*", "[\\+\\.\\w]*");
uriRegexVec.push_back(boost::regex(uri));
}
}