mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-25 00:45:56 +02: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:
parent
f04fa15090
commit
ec79802cb6
@ -15249,3 +15249,6 @@
|
||||
2016-06-17 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Modified rdexport(1) to list correct audio format parameters
|
||||
in the XML output.
|
||||
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.
|
||||
|
@ -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);
|
||||
|
@ -59,6 +59,7 @@
|
||||
#include <rdlibrary_conf.h>
|
||||
#include <rdaudioconvert.h>
|
||||
#include <rdupload.h>
|
||||
#include <rdweb.h>
|
||||
#include <rddownload.h>
|
||||
|
||||
void MainObject::catchConnectedData(int serial,bool state)
|
||||
@ -192,14 +193,15 @@ void MainObject::RunDownload(CatchEvent *evt)
|
||||
//
|
||||
// Execute Download
|
||||
//
|
||||
evt->setTempName(BuildTempName(evt,"download"));
|
||||
LogLine(RDConfig::LogInfo,QString().
|
||||
sprintf("starting download of %s to %s, id=%d",
|
||||
(const char *)evt->resolvedUrl(),
|
||||
(const char *)evt->tempName(),
|
||||
evt->id()));
|
||||
evt->setTempName(BuildTempName(evt,"download"));
|
||||
RDDownload *conv=new RDDownload(catch_config->stationName(),this);
|
||||
conv->setSourceUrl(evt->resolvedUrl());
|
||||
|
||||
conv->setSourceUrl(RDUrlEscape(evt->resolvedUrl()));
|
||||
conv->setDestinationFile(evt->tempName());
|
||||
QString url_username=evt->urlUsername();
|
||||
QString url_password=evt->urlPassword();
|
||||
|
Loading…
x
Reference in New Issue
Block a user