summaryrefslogtreecommitdiff
path: root/indra/newview/llcommandhandler.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2026-09-28 20:47:25 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2026-09-28 20:47:25 +0300
commit9a23a025b39f0d34f8c31d86649f3d28f904b18c (patch)
treeb880ae4b6c51bbca45f070d8c37fac09a7e77ef1 /indra/newview/llcommandhandler.cpp
parentff35f62d33ad7084927c5c74f6ce3bc8fc8c0ffd (diff)
#6380 Don't write sensitive slapp to the viewer log
Diffstat (limited to 'indra/newview/llcommandhandler.cpp')
-rw-r--r--indra/newview/llcommandhandler.cpp14
1 files changed, 14 insertions, 0 deletions
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<std::string, LLCommandHandlerInfo>::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()