mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-15 21:13:02 +00:00
Encode the ExtendedData to make it safer while embedding in messages
Change-Id: I1d4bdb2775d89e9a52a96d833228ca8577ee3561 Reviewed-on: https://gerrit.libreoffice.org/83044 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:

committed by
Ashod Nakashian

parent
bbaf010f4f
commit
7c4ba459ff
@ -276,7 +276,7 @@ void FileServerRequestHandler::handleRequest(const HTTPRequest& request, Poco::M
|
||||
std::string path(requestUri.getPath());
|
||||
if (path.find("loleaflet/" LOOLWSD_VERSION_HASH "/") == std::string::npos)
|
||||
{
|
||||
LOG_WRN("client - server version mismatch, disabling browser cache.");
|
||||
LOG_WRN("client - server version mismatch, disabling browser cache. Expected: " LOOLWSD_VERSION_HASH);
|
||||
noCache = true;
|
||||
}
|
||||
|
||||
@ -845,7 +845,8 @@ void FileServerRequestHandler::preprocessFile(const HTTPRequest& request, Poco::
|
||||
oss.str(preprocess);
|
||||
}
|
||||
|
||||
socket->send(oss.str());
|
||||
preprocess = oss.str();
|
||||
socket->send(preprocess);
|
||||
LOG_DBG("Sent file: " << relPath << ": " << preprocess);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user