fix wxURL::GetInputStream() for URLs with special characters in credentials (closes #10265)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -99,6 +99,8 @@ All:
|
||||
- Added Vietnamese translation (Tran Ngoc Quan).
|
||||
- Updated Slovenian translation (Martin Srebotnjak).
|
||||
- Corrected Serbian locale name (Cody Precord).
|
||||
- Fix wxURL::GetInputStream() for URLs with special characters in credentials
|
||||
(Robert Wruck).
|
||||
|
||||
All (GUI):
|
||||
|
||||
|
@@ -242,11 +242,11 @@ wxInputStream *wxURL::GetInputStream()
|
||||
size_t dwPasswordPos = m_userinfo.find(':');
|
||||
|
||||
if (dwPasswordPos == wxString::npos)
|
||||
m_protocol->SetUser(m_userinfo);
|
||||
m_protocol->SetUser(Unescape(m_userinfo));
|
||||
else
|
||||
{
|
||||
m_protocol->SetUser(m_userinfo(0, dwPasswordPos));
|
||||
m_protocol->SetPassword(m_userinfo(dwPasswordPos+1, m_userinfo.length() + 1));
|
||||
m_protocol->SetUser(Unescape(m_userinfo(0, dwPasswordPos)));
|
||||
m_protocol->SetPassword(Unescape(m_userinfo(dwPasswordPos+1, m_userinfo.length() + 1)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user