Commit 4b9be2d7 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #3564 from DonLakeFlyer/FileDownload

Handle parameters at end of URL
parents 8614779d 5764f436
......@@ -33,6 +33,12 @@ bool QGCFileDownload::download(const QString& remoteFile)
return false;
}
// Strip out parameters from remote filename
int parameterIndex = remoteFileName.indexOf("?");
if (parameterIndex != -1) {
remoteFileName = remoteFileName.left(parameterIndex);
}
// Determine location to download file to
QString localFile = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
if (localFile.isEmpty()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment