mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
WebUI: Only prepend scheme when it is not present. Closes #8057.
This commit is contained in:
@@ -90,7 +90,9 @@ namespace
|
||||
{
|
||||
inline QUrl urlFromHostHeader(const QString &hostHeader)
|
||||
{
|
||||
if (!hostHeader.contains(QLatin1String("://")))
|
||||
return QUrl(QLatin1String("http://") + hostHeader);
|
||||
return hostHeader;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user