[Libreoffice-commits] online.git: Branch 'libreoffice-5-3' - wsd/ClientSession.cpp

Pranav Kant pranavk at collabora.co.uk
Mon Mar 20 06:28:53 UTC 2017


 wsd/ClientSession.cpp |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 9e3471d3b1ba61b0a989e1655fe1b42828d39ca8
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Mon Dec 5 17:50:22 2016 +0530

    tdf#106601 wsd: Allow executing search in readonly mode
    
    Change-Id: Ie0c2721e4f932a08dfefae742f9f3c934514fde6
    Reviewed-on: https://gerrit.libreoffice.org/35360
    Reviewed-by: pranavk <pranavk at collabora.co.uk>
    Tested-by: pranavk <pranavk at collabora.co.uk>

diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index 30bc33b2..93609cbf 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -400,6 +400,13 @@ bool ClientSession::filterMessage(const std::string& message) const
         {
             allowed = true;
         }
+        else if (tokens[0] == "uno")
+        {
+            if (tokens[1] == ".uno:ExecuteSearch")
+            {
+                allowed = true;
+            }
+        }
     }
 
     return allowed;


More information about the Libreoffice-commits mailing list