[Libreoffice-commits] online.git: loolwsd/Storage.cpp

Pranav Kant pranavk at collabora.co.uk
Fri Nov 11 17:39:51 UTC 2016


 loolwsd/Storage.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 224e6fc8e750896c25066f0b71efe65e0dff9a43
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Fri Nov 11 22:32:16 2016 +0530

    loolwsd: Only warn about mis-spells, don't accept them
    
    Change-Id: Iace494139eee8ff7dececf203c9fd51a98c6bd46

diff --git a/loolwsd/Storage.cpp b/loolwsd/Storage.cpp
index 37098b9..d504db0 100644
--- a/loolwsd/Storage.cpp
+++ b/loolwsd/Storage.cpp
@@ -330,7 +330,8 @@ void getWOPIValue(const Poco::JSON::Object::Ptr &object, const std::string& key,
             continue;
         else if (levDist > 0 || key != userInput)
         {
-            LOG_WRN("Incorrect JSON property [" << userInput << "]. Automatically corrected to " << key);
+            LOG_WRN("Incorrect JSON property [" << userInput << "]. Did you mean " << key << " ?");
+            return;
         }
 
         try


More information about the Libreoffice-commits mailing list