summaryrefslogtreecommitdiff
path: root/indra/newview/llcommandhandler.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-10-08 07:56:26 +0800
committerErik Kundiman <erik@megapahit.org>2026-10-08 07:56:26 +0800
commita36c78d643d759147b90bdd52753cc506702050c (patch)
tree4649f413e5531eb854cc6ed917838481af92332e /indra/newview/llcommandhandler.cpp
parent8bd0b8370765e762a570def7fbb99dc3ec4538f2 (diff)
parent0572d349e6c850480c19c583d126a3e8a1631225 (diff)
Merge tag 'Second_Life_Release#0572d349-26.5' into 26.5
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()