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)));
}
}
wxIPV4address addr;
// m_protoinfo is NULL when we use a proxy
- if (!m_useProxy && m_protoinfo->m_needhost)
+ if (
+#if wxUSE_PROTOCOL_HTTP
+ !m_useProxy &&
+#endif // wxUSE_PROTOCOL_HTTP
+ m_protoinfo->m_needhost )
{
if (!addr.Hostname(m_server))
{
return NULL;
}
}
-#endif
+#endif // wxUSE_SOCKETS
wxString fullPath;
+#if wxUSE_PROTOCOL_HTTP
// When we use a proxy, we have to pass the whole URL to it.
if (m_useProxy)
fullPath += m_url;
+#endif // wxUSE_PROTOCOL_HTTP
if(m_path.empty())
fullPath += wxT("/");