We've fix a small bug in uri parser, regarding #, and other special caracters.

git-svn-id: http://voip.null.ro/svn/yate@256 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2005-03-11 09:22:39 +00:00
parent 331dfeafe1
commit af1cf94f0a
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void URI::parse() const
// [proto:][user[:passwd]@]hostname[:port][/path][?param=value[&param=value...]]
// [proto:][user@]hostname[:port][/path][;params][?params][&params]
r = "^\\([[:alpha:]]\\+:\\)\\?\\([[:alnum:]._-]\\+@\\)\\?\\([[:alnum:]._-]\\+\\)\\(:[0-9]\\+\\)\\?";
r = "^\\([[:alpha:]]\\+:\\)\\?\\([^[:space:][:cntrl:]@]\\+@\\)\\?\\([[:alnum:]._-]\\+\\)\\(:[0-9]\\+\\)\\?";
if (tmp.matches(r)) {
m_proto = tmp.matchString(1).toLower();
m_proto = m_proto.substr(0,m_proto.length()-1);