mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-10 20:31:47 +00:00
Merge pull request #8066 from Chocobo1/url
WebUI: Only prepend scheme when it is not present. Closes #8057.
This commit is contained in:
commit
b8277614ec
@ -90,7 +90,9 @@ namespace
|
|||||||
{
|
{
|
||||||
inline QUrl urlFromHostHeader(const QString &hostHeader)
|
inline QUrl urlFromHostHeader(const QString &hostHeader)
|
||||||
{
|
{
|
||||||
return QUrl(QLatin1String("http://") + hostHeader);
|
if (!hostHeader.contains(QLatin1String("://")))
|
||||||
|
return QUrl(QLatin1String("http://") + hostHeader);
|
||||||
|
return hostHeader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user