mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-12 15:57:57 +00:00
WebUI: Only prepend scheme when it is not present. Closes #8057.
This commit is contained in:
parent
53c33317f9
commit
fb6bdbefd5
@ -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…
Reference in New Issue
Block a user