Browse Source

WebUI: Only prepend scheme when it is not present. Closes #8057.

adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
fb6bdbefd5
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/webui/abstractwebapplication.cpp

4
src/webui/abstractwebapplication.cpp

@ -90,7 +90,9 @@ namespace @@ -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…
Cancel
Save