Skip to content
Snippets Groups Projects
Commit 03d26d6d authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

URI: Do not add an '@' when the hostname is empty

Refs #74054

Change-Id: I7aa5fe562be722e25906ac051d5df771919b05f0
parent 53b4032a
No related branches found
No related tags found
No related merge requests found
...@@ -516,7 +516,7 @@ QString URI::format(FlagPack<URI::Section> sections) const ...@@ -516,7 +516,7 @@ QString URI::format(FlagPack<URI::Section> sections) const
if (sections & URI::Section::USER_INFO) if (sections & URI::Section::USER_INFO)
ret += d_ptr->m_Userinfo; ret += d_ptr->m_Userinfo;
if (sections & URI::Section::HOSTNAME) if (sections & URI::Section::HOSTNAME && !d_ptr->m_Hostname2.isEmpty())
ret += '@' + d_ptr->m_Hostname2; ret += '@' + d_ptr->m_Hostname2;
if (sections & URI::Section::PORT && d_ptr->m_Port != -1) if (sections & URI::Section::PORT && d_ptr->m_Port != -1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment