From f92a074a74a570f52e546ba4f28d9346bf8ddd31 Mon Sep 17 00:00:00 2001 From: jmarshallnz Date: Fri, 18 Jul 2014 18:37:53 +1200 Subject: Merge pull request #5039 from CEikermann/patch-1 Trac #15178: FTP TLS not working --- xbmc/filesystem/CurlFile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xbmc/filesystem/CurlFile.cpp b/xbmc/filesystem/CurlFile.cpp index 0a5ea14e54..4808465c1d 100644 --- a/xbmc/filesystem/CurlFile.cpp +++ b/xbmc/filesystem/CurlFile.cpp @@ -745,8 +745,6 @@ void CCurlFile::ParseAndCorrectUrl(CURL &url2) url2.GetProtocolOptions(options); if (options.size() > 0) { - // clear protocol options - url2.SetProtocolOptions(""); // set xbmc headers for(std::map::const_iterator it = options.begin(); it != options.end(); ++it) { @@ -782,6 +780,9 @@ void CCurlFile::ParseAndCorrectUrl(CURL &url2) } } } + + // Unset the protocol options to have an url without protocol options + url2.SetProtocolOptions(""); if (m_username.length() > 0 && m_password.length() > 0) m_url = url2.GetWithoutUserDetails(); -- cgit v1.2.3