From a0e636a592aacf3a53c7a25983cf933d1843fe72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20S=C5=82omkowski?= Date: Mon, 18 Apr 2016 01:46:54 +0200 Subject: [PATCH] Fix URI validator to include '.'. --- IncomingConnectionValidator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IncomingConnectionValidator.cpp b/IncomingConnectionValidator.cpp index 2f0cf5d..74823cf 100644 --- a/IncomingConnectionValidator.cpp +++ b/IncomingConnectionValidator.cpp @@ -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)); } }