From b38e1f41ead138af1bdbe8fe5c333f4bfc832b1a Mon Sep 17 00:00:00 2001 From: Aron Budea Date: Fri, 26 Apr 2024 03:54:32 +0200 Subject: [PATCH] Don't log warnings about version mismatch for admin console It's only relevant for regular URLs that contain version hash. Signed-off-by: Aron Budea Change-Id: I73afaa0559c3dddc09a8ed5f786fb5126e1c8f0c --- wsd/FileServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wsd/FileServer.cpp b/wsd/FileServer.cpp index ffb737ccd8..d17a66b80b 100644 --- a/wsd/FileServer.cpp +++ b/wsd/FileServer.cpp @@ -528,7 +528,8 @@ void FileServerRequestHandler::handleRequest(const HTTPRequest& request, LOG_TRC("Fileserver request: " << requestUri.toString()); requestUri.normalize(); // avoid .'s and ..'s - if (requestUri.getPath().find("browser/" COOLWSD_VERSION_HASH "/") == std::string::npos) + if (requestUri.getPath().find("browser/" COOLWSD_VERSION_HASH "/") == std::string::npos && + requestUri.getPath().find("admin/") == std::string::npos) { LOG_WRN("Client - server version mismatch, disabling browser cache. " "Expected: " COOLWSD_VERSION_HASH "; Actual URI path with version hash: "