Enclose URI in < and > if description is not NULL but add "description" only if it's not empty.
git-svn-id: http://voip.null.ro/svn/yate@2548 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
449c7ac421
commit
99ed01fa92
|
@ -54,8 +54,11 @@ URI::URI(const char* uri)
|
|||
URI::URI(const char* proto, const char* user, const char* host, int port, const char* desc)
|
||||
: m_desc(desc), m_proto(proto), m_user(user), m_host(host), m_port(port)
|
||||
{
|
||||
if (desc)
|
||||
*this << "\"" << m_desc << "\" <";
|
||||
if (desc) {
|
||||
if (m_desc)
|
||||
*this << "\"" << m_desc << "\" ";
|
||||
*this << "<";
|
||||
}
|
||||
*this << m_proto << ":";
|
||||
if (user)
|
||||
*this << m_user << "@";
|
||||
|
|
Loading…
Reference in New Issue