diff options
| author | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2026-10-13 14:34:41 -0400 |
|---|---|---|
| committer | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2026-10-13 14:34:41 -0400 |
| commit | 181fd93f799e15a6ff924362c4a05be8db3639af (patch) | |
| tree | f3a3a530b80b1b17e71c7b6d7fa8b981b52c61f9 /indra/newview/llcommandhandler.cpp | |
| parent | 8ba5d1a8adc47c21b23d9482e72de9517f9a98fc (diff) | |
| parent | 083db782e29434ab17963fcac76b0ec3cd93b9d0 (diff) | |
Merge remote-tracking branch 'origin/release/26.5' into geenz/main-26.5
Diffstat (limited to 'indra/newview/llcommandhandler.cpp')
| -rw-r--r-- | indra/newview/llcommandhandler.cpp | 14 |
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() |
