|
|
@ -155,9 +155,12 @@ WebApplication::WebApplication(IApplication *app, QObject *parent) |
|
|
|
|
|
|
|
|
|
|
|
m_sessionCookieName = Preferences::instance()->getWebAPISessionCookieName(); |
|
|
|
m_sessionCookieName = Preferences::instance()->getWebAPISessionCookieName(); |
|
|
|
if (!isValidCookieName(m_sessionCookieName)) |
|
|
|
if (!isValidCookieName(m_sessionCookieName)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (!m_sessionCookieName.isEmpty()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogMsg(tr("Unacceptable session cookie name is specified: '%1'. Default one is used.") |
|
|
|
LogMsg(tr("Unacceptable session cookie name is specified: '%1'. Default one is used.") |
|
|
|
.arg(m_sessionCookieName), Log::WARNING); |
|
|
|
.arg(m_sessionCookieName), Log::WARNING); |
|
|
|
|
|
|
|
} |
|
|
|
m_sessionCookieName = DEFAULT_SESSION_COOKIE_NAME; |
|
|
|
m_sessionCookieName = DEFAULT_SESSION_COOKIE_NAME; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|