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:
parent
331dfeafe1
commit
af1cf94f0a
|
@ -86,7 +86,7 @@ void URI::parse() const
|
|||
|
||||
// [proto:][user[:passwd]@]hostname[:port][/path][?param=value[¶m=value...]]
|
||||
// [proto:][user@]hostname[:port][/path][;params][?params][¶ms]
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue