diff --git a/src/webui/webapplication.cpp b/src/webui/webapplication.cpp index 1394e1e46..65331f1ea 100644 --- a/src/webui/webapplication.cpp +++ b/src/webui/webapplication.cpp @@ -740,7 +740,7 @@ void WebApplication::sessionStart() connect(m_freeDiskSpaceChecker, &FreeDiskSpaceChecker::checked, syncController, &SyncController::updateFreeDiskSpace); m_currentSession->registerAPIController(u"sync"_s, syncController); - QNetworkCookie cookie {m_sessionCookieName.toLatin1(), m_currentSession->id().toUtf8()}; + QNetworkCookie cookie {m_sessionCookieName.toLatin1(), m_currentSession->id().toLatin1()}; cookie.setHttpOnly(true); cookie.setSecure(m_isSecureCookieEnabled && m_isHttpsEnabled); cookie.setPath(u"/"_s);