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

URI: Always handle 40 characters long hex userinfos as ring hashes

Refs #71039
parent 9316baca
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,8 @@ URI::ProtocolHint URI::protocolHint() const
: (
//Step three : Check RING protocol, is has already been detected at this point
d_ptr->m_HeaderType == URI::SchemeType::RING && isHash ? URI::ProtocolHint::RING
(d_ptr->m_HeaderType == URI::SchemeType::RING && isHash) || (isHash && d_ptr->m_Userinfo.size() == 40)
? URI::ProtocolHint::RING
: (
//Step four : Differentiate between ***@*** and *** type URIs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment