wsd/FileServer.cpp | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 583e7d610a9c4a22d121b281aefe6eb1fac03df6 Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> AuthorDate: Wed Nov 28 09:36:24 2018 +0100 Commit: Thorsten Behrens <thorsten.behr...@cib.de> CommitDate: Thu Nov 29 10:13:40 2018 +0100
Only add the host to frame-ancestors not the whole URL with all parameters Change-Id: I42e3a6a4c05410284afea51bb13ac3f692b243ef Reviewed-on: https://gerrit.libreoffice.org/64147 Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> Tested-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> (cherry picked from commit 8f1abe48397d7da4629fb50324289ad39102cfc7) Reviewed-on: https://gerrit.libreoffice.org/64149 Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de> Tested-by: Thorsten Behrens <thorsten.behr...@cib.de> diff --git a/wsd/FileServer.cpp b/wsd/FileServer.cpp index 23ec0f441..318a9ff98 100644 --- a/wsd/FileServer.cpp +++ b/wsd/FileServer.cpp @@ -695,6 +695,9 @@ void FileServerRequestHandler::preprocessFile(const HTTPRequest& request, Poco:: { std::string wopiFrameAncestor; Poco::URI::decode(param.second, wopiFrameAncestor); + Poco::URI uriWopiFrameAncestor(wopiFrameAncestor); + // Remove parameters from URL + wopiFrameAncestor = uriWopiFrameAncestor.getHost(); if (wopiFrameAncestor != uriHost.getHost() && wopiFrameAncestor != configFrameAncestor) { frameAncestors += " " + wopiFrameAncestor; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits