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:
Ashod Nakashian
2019-11-16 11:59:39 -05:00
committed by Ashod Nakashian
parent bbaf010f4f
commit 7c4ba459ff
4 changed files with 15 additions and 5 deletions

View File

@ -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);
}