diff --git a/src/base/http/connection.cpp b/src/base/http/connection.cpp index 47ccf8f67..27cb53c5c 100644 --- a/src/base/http/connection.cpp +++ b/src/base/http/connection.cpp @@ -66,7 +66,7 @@ void Connection::read() case RequestParser::ParseStatus::Incomplete: { const long bufferLimit = RequestParser::MAX_CONTENT_SIZE * 1.1; // some margin for headers if (m_receivedData.size() > bufferLimit) { - Logger::instance()->addMessage(tr("Http request size exceeds limiation, closing socket. Limit: %ld, IP: %s") + Logger::instance()->addMessage(tr("Http request size exceeds limiation, closing socket. Limit: %1, IP: %2") .arg(bufferLimit).arg(m_socket->peerAddress().toString()), Log::WARNING); Response resp(413, "Payload Too Large"); @@ -79,7 +79,7 @@ void Connection::read() return; case RequestParser::ParseStatus::BadRequest: { - Logger::instance()->addMessage(tr("Bad Http request, closing socket. IP: %s") + Logger::instance()->addMessage(tr("Bad Http request, closing socket. IP: %1") .arg(m_socket->peerAddress().toString()), Log::WARNING); Response resp(400, "Bad Request"); diff --git a/src/webui/www/private/css/noscript.css b/src/webui/www/private/css/noscript.css new file mode 100644 index 000000000..090b572b8 --- /dev/null +++ b/src/webui/www/private/css/noscript.css @@ -0,0 +1,8 @@ +#desktop { + display: none; +} + +#noscript { + color: #f00; + text-align: center; +} diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html index e4c9c66a9..d661d92e3 100644 --- a/src/webui/www/private/index.html +++ b/src/webui/www/private/index.html @@ -13,6 +13,9 @@ +