forked from qt-creator/qt-creator
Utils: Allow (encoded) colons in host parts of FilePath
Change-Id: I6acd8ac8ab44cb895cc08ce6b1972802f79a2a53 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -213,12 +213,13 @@ 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", "/");
|
||||
return host.replace("%25", "%").replace("%2f", "/").replace("%3a", ":");
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user