Update URI validation regex to be more generic.
这个提交包含在:
父节点
298b5ff500
当前提交
35f70f3195
@ -18,7 +18,7 @@ sip::IncomingConnectionValidator::IncomingConnectionValidator(std::string validU
|
||||
}
|
||||
|
||||
bool sip::IncomingConnectionValidator::validateUri(std::string uri) {
|
||||
boost::regex addressRegex("[\"\\+\\w ]*<sip:([\\+\\w\\.]+@[\\w\\.]+)>");
|
||||
boost::regex addressRegex("[\"\\+\\w\\. ]*<?sip:([\\+\\w\\.]+@[\\w\\.]+)>?");
|
||||
|
||||
boost::smatch s;
|
||||
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户