From 469743996f8fe39c121d2df9b3e638da497b6b07 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> Date: Thu, 23 Apr 2015 16:05:47 -0400 Subject: [PATCH] URI: Always handle 40 characters long hex userinfos as ring hashes Refs #71039 --- src/uri.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uri.cpp b/src/uri.cpp index b168cbb2..b9478d57 100644 --- a/src/uri.cpp +++ b/src/uri.cpp @@ -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 -- GitLab