X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce195ee63259e9a70136adef1ddcec4132647f96..4f0436e4655b628b32c4e9b27837c400e46c3746:/src/common/url.cpp diff --git a/src/common/url.cpp b/src/common/url.cpp index 46f40e2300..a78708b6ee 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -239,16 +239,16 @@ wxInputStream *wxURL::GetInputStream() } m_error = wxURL_NOERR; - if (HasUser()) + if (HasUserInfo()) { - size_t dwPasswordPos = m_user.find(':'); + size_t dwPasswordPos = m_userinfo.find(':'); if (dwPasswordPos == wxString::npos) - m_protocol->SetUser(m_user); + m_protocol->SetUser(m_userinfo); else { - m_protocol->SetUser(m_user(0, dwPasswordPos)); - m_protocol->SetPassword(m_user(dwPasswordPos+1, m_user.length() + 1)); + m_protocol->SetUser(m_userinfo(0, dwPasswordPos)); + m_protocol->SetPassword(m_userinfo(dwPasswordPos+1, m_userinfo.length() + 1)); } }