From 4552a373ebffe0e7ab163fe0f82b0f260d573d81 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Wed, 8 May 2024 22:27:08 +0000 Subject: Don't use pathJoin for URLs Problem happens only on Windows that uses \ for path separators and only when primary download location does not contain requested file with requested checksum. To repro, it should be enough to change one checksum in resources.xml Report from Manatauro: ![pathjoin](/uploads/4b969168ba7babc21108c1db1a680f66/pathjoin.jpg) **** mana/plus!82 --- src/gui/windows/updaterwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index 948ce5a17..2ed01f4f3 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -619,8 +619,7 @@ void UpdaterWindow::download() const STD_VECTOR &mirrors = settings.updateMirrors; FOR_EACH (STD_VECTOR::const_iterator, it, mirrors) { - mDownload->addMirror(pathJoin(*it, - mCurrentFile)); + mDownload->addMirror(urlJoin(*it, mCurrentFile)); } } } -- cgit v1.2.3-70-g09d2