Fix URI validator to include '.'.
This commit is contained in:
parent
11e93bb138
commit
a0e636a592
@ -12,7 +12,7 @@ sip::IncomingConnectionValidator::IncomingConnectionValidator(std::string validU
|
|||||||
boost::split(separateUris, validUriExpression, boost::is_any_of("\t "));
|
boost::split(separateUris, validUriExpression, boost::is_any_of("\t "));
|
||||||
for (auto &uri : separateUris) {
|
for (auto &uri : separateUris) {
|
||||||
boost::replace_all(uri, ".", "\\.");
|
boost::replace_all(uri, ".", "\\.");
|
||||||
boost::replace_all(uri, "*", "[\\+\\w]*");
|
boost::replace_all(uri, "*", "[\\+\\.\\w]*");
|
||||||
uriRegexVec.push_back(boost::regex(uri));
|
uriRegexVec.push_back(boost::regex(uri));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user