summaryrefslogtreecommitdiffstats
path: root/wsd
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2021-08-29 13:35:47 -0400
committerAshod Nakashian <Ashod@users.noreply.github.com>2021-09-13 09:40:09 -0400
commite363273e2270977e9f082a8f03623a349621b75a (patch)
treef58a4f6fccbee53a99bc3fc73d19932955b4c4fe /wsd
parentleaflet: move url manipulation to helper (diff)
downloadonline-e363273e2270977e9f082a8f03623a349621b75a.tar.gz
online-e363273e2270977e9f082a8f03623a349621b75a.zip
leaflet: support hexifying the body of the lool URI
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk> (cherry picked from commit cfa7972289e9c71b56c81722aedc14189f842475) Change-Id: Iebf214a1bba76dd44fe2c160a0749675aa5b140a
Diffstat (limited to 'wsd')
-rw-r--r--wsd/FileServer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/wsd/FileServer.cpp b/wsd/FileServer.cpp
index 45cdc9fcfd..cf0b343f5f 100644
--- a/wsd/FileServer.cpp
+++ b/wsd/FileServer.cpp
@@ -714,6 +714,7 @@ void FileServerRequestHandler::preprocessFile(const HTTPRequest& request,
Poco::replaceInPlace(preprocess, std::string("%ACCESS_TOKEN_TTL%"), std::to_string(tokenTtl));
Poco::replaceInPlace(preprocess, std::string("%ACCESS_HEADER%"), escapedAccessHeader);
Poco::replaceInPlace(preprocess, std::string("%HOST%"), cnxDetails.getWebSocketUrl());
+ Poco::replaceInPlace(preprocess, std::string("%HEXIFY_URL%"), std::string("false"));
Poco::replaceInPlace(preprocess, std::string("%VERSION%"), std::string(LOOLWSD_VERSION_HASH));
Poco::replaceInPlace(preprocess, std::string("%SERVICE_ROOT%"), responseRoot);
Poco::replaceInPlace(preprocess, std::string("%UI_DEFAULTS%"), uiDefaultsToJSON(uiDefaults, userInterfaceMode));