mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
WebUI: Only prepend scheme when it is not present. Closes #8057.
This commit is contained in:
parent
53c33317f9
commit
fb6bdbefd5
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ namespace
|
|||
{
|
||||
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 a new issue