mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-03-05 06:00:58 +01:00
2016-06-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rddownload.cpp' that caused download URLs using 'https' protocol to fail to be properly escaped.
This commit is contained in:
@@ -131,8 +131,8 @@ RDDownload::ErrorCode RDDownload::runDownload(const QString &username,
|
||||
// otherwise some versions of LibCurl will throw a 'bad/illegal format'
|
||||
// error.
|
||||
//
|
||||
strncpy(url,conv_src_url.toString(conv_src_url.protocol().lower()=="http"),
|
||||
1024);
|
||||
strncpy(url,conv_src_url.
|
||||
toString(conv_src_url.protocol().lower().left(4)=="http"),1024);
|
||||
curl_easy_setopt(curl,CURLOPT_URL,url);
|
||||
curl_easy_setopt(curl,CURLOPT_WRITEDATA,f);
|
||||
strncpy(userpwd,username+":"+password,256);
|
||||
|
||||
Reference in New Issue
Block a user