From 3ad1a6ecdd63265061cd4ff12444ff311352adbc Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 10 Aug 2023 11:03:07 +0200 Subject: [PATCH] Revert "Utils: Allow (encoded) colons in host parts of FilePath" This reverts commit f65b343c8ac6dd4b68a98d56207274f0ccbe2a51. It's not needed anymore for the problem it was supposed to help with (bad docker imange/qmake paths written by sdktool) and complicates reasoning in this area. Change-Id: Idef2ef9147d73e83461589907aa68c09721755cb Reviewed-by: Marcus Tillmanns --- src/libs/utils/filepath.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/utils/filepath.cpp b/src/libs/utils/filepath.cpp index 7c4383c2949..8349fb68180 100644 --- a/src/libs/utils/filepath.cpp +++ b/src/libs/utils/filepath.cpp @@ -213,13 +213,12 @@ QString FilePath::encodedHost() const QString result = host().toString(); result.replace('%', "%25"); result.replace('/', "%2f"); - result.replace(':', "%3a"); return result; } QString decodeHost(QString host) { - return host.replace("%25", "%").replace("%2f", "/").replace("%3a", ":"); + return host.replace("%25", "%").replace("%2f", "/"); } /*!