summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorKelly Washington <kelly@lindenlab.com>2012-04-25 11:26:54 -0700
committerKelly Washington <kelly@lindenlab.com>2012-04-25 11:26:54 -0700
commit6d3be57d334f02f4781dcaede9746976bd3643a4 (patch)
treec6cfd48813762cf55f67459e8b7797c86ba68475 /indra/llcommon
parent4472354b5454f758c467bb23190d1a84cf61d909 (diff)
SEC-995 FIX viewer is easily spammed to death by chat
removed a couple more unnecessary string copies from unfortunate LLSD behavior. reviewed with simon, post review from Richard.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llsd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llcommon/llsd.cpp b/indra/llcommon/llsd.cpp
index e295e3c621..8276ec836a 100644
--- a/indra/llcommon/llsd.cpp
+++ b/indra/llcommon/llsd.cpp
@@ -269,6 +269,7 @@ namespace
virtual LLSD::UUID asUUID() const { return LLUUID(mValue); }
virtual LLSD::Date asDate() const { return LLDate(mValue); }
virtual LLSD::URI asURI() const { return LLURI(mValue); }
+ virtual int size() const { return mValue.size(); }
};
LLSD::Integer ImplString::asInteger() const