Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
5764f436
Commit
5764f436
authored
Jun 13, 2016
by
Don Gagne
Browse files
Handle parameters at end of URL
parent
88b9c9cd
Changes
1
Show whitespace changes
Inline
Side-by-side
src/QGCFileDownload.cc
View file @
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
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment