From 9a23a025b39f0d34f8c31d86649f3d28f904b18c Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Mon, 28 Sep 2026 20:47:25 +0300 Subject: #6380 Don't write sensitive slapp to the viewer log --- indra/newview/llcommandhandler.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'indra/newview/llcommandhandler.cpp') diff --git a/indra/newview/llcommandhandler.cpp b/indra/newview/llcommandhandler.cpp index 4038ae8002..1ccf578118 100644 --- a/indra/newview/llcommandhandler.cpp +++ b/indra/newview/llcommandhandler.cpp @@ -66,6 +66,7 @@ public: LLMediaCtrl* web, const std::string& nav_type, bool trusted_browser); + bool isSensitive(const std::string& cmd) const; private: void notifySlurlBlocked(); @@ -170,6 +171,13 @@ bool LLCommandHandlerRegistry::dispatch(const std::string& cmd, return info.mHandler->handle(params, query_map, grid, web); } +bool LLCommandHandlerRegistry::isSensitive(const std::string& cmd) const +{ + std::map::const_iterator it = mMap.find(cmd); + if (it == mMap.end() || !it->second.mHandler) return false; + return it->second.mHandler->isSensitive(); +} + void LLCommandHandlerRegistry::notifySlurlBlocked() { static bool slurl_blocked = false; @@ -231,6 +239,12 @@ bool LLCommandDispatcher::dispatch(const std::string& cmd, cmd, params, query_map, grid, web, nav_type, trusted_browser); } +// static +bool LLCommandDispatcher::isSensitive(const std::string& cmd) +{ + return LLCommandHandlerRegistry::instance().isSensitive(cmd); +} + static std::string lookup(LLCommandHandler::EUntrustedAccess value); LLSD LLCommandDispatcher::enumerate() -- cgit v1.3