diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2021-10-21 23:27:28 -0400 |
---|---|---|
committer | Ashod Nakashian <Ashod@users.noreply.github.com> | 2021-11-02 08:43:26 -0400 |
commit | 0933508fb872343441994741a1085b2f00e12e91 (patch) | |
tree | a5a4bd36613d9cfce0e3f93f846755e06b4a950f /wsd/RequestDetails.hpp | |
parent | test: log timeout limit when the document fails to load (diff) | |
download | online-0933508fb872343441994741a1085b2f00e12e91.tar.gz online-0933508fb872343441994741a1085b2f00e12e91.zip |
wsd: move sanitizeURI into RequestDetails
And cleanup around DocKey and URI handling.
Change-Id: Ieef83197ac9b04e22af92eee217e336bc2b31761
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Diffstat (limited to 'wsd/RequestDetails.hpp')
-rw-r--r-- | wsd/RequestDetails.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wsd/RequestDetails.hpp b/wsd/RequestDetails.hpp index 679a5c846d..151fb2becc 100644 --- a/wsd/RequestDetails.hpp +++ b/wsd/RequestDetails.hpp @@ -131,6 +131,9 @@ public: RequestDetails(Poco::Net::HTTPRequest &request, const std::string& serviceRoot); RequestDetails(const std::string &mobileURI); + /// Decode and sanitize a URI. + static Poco::URI sanitizeURI(const std::string& uri); + // matches the WOPISrc if used. For load balancing // must be 2nd element in the path after /lool/<here> std::string getLegacyDocumentURI() const { return getField(Field::LegacyDocumentURI); } @@ -222,9 +225,6 @@ public: oss << "\nfull URI: " << _uriString; return oss.str(); } - - /// Sanitize the given URI. - static Poco::URI sanitizeURI(const std::string& uri); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |