[Libreoffice-commits] online.git: loolwsd/LOOLSession.cpp
Henry Castro
hcastro at collabora.com
Mon Aug 3 18:38:37 PDT 2015
loolwsd/LOOLSession.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 85b0474deb3ef74412727c337de4c7f748c3a1fd
Author: Henry Castro <hcastro at collabora.com>
Date: Mon Aug 3 21:33:47 2015 -0400
loolwsd: remove time stamp query parameter
The original URI request with query parameters is processed by loKit.
diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp
index fe1096a..d6fa5aa 100644
--- a/loolwsd/LOOLSession.cpp
+++ b/loolwsd/LOOLSession.cpp
@@ -743,9 +743,17 @@ bool ChildProcessSession::loadDocument(const char *buffer, int length, StringTok
_docURL = tokens[1];
URI aUri;
+ URI::QueryParameters params;
try
{
aUri = URI(_docURL);
+ params = aUri.getQueryParameters();
+ if ( !params.empty() && params.back().first == "timestamp" )
+ {
+ aUri.setQuery("");
+ params.pop_back();
+ aUri.setQueryParameters(params);
+ }
}
catch(Poco::SyntaxException&)
{
More information about the Libreoffice-commits
mailing list