diff options
author | Andrew Dyukov <adyukov@productengine.com> | 2010-02-22 19:22:43 +0200 |
---|---|---|
committer | Andrew Dyukov <adyukov@productengine.com> | 2010-02-22 19:22:43 +0200 |
commit | 16b284971ebb6ecb41ba65d5fd9da87bc08bcba3 (patch) | |
tree | 8f878d54bb806b4783d24d87f9a456b0cb03bc6c /indra/newview/llslurl.h | |
parent | a7d716c35e57881a016c69752fa5f46dfd314ad9 (diff) |
Fixed normal bug EXT-4964 (Invalid SLURL detection does not detect invalid slurls).
- Added new static method LLSLURL::isValidSLURL() whic uses LLUrlRegistry::isUrl() to validate SLURLs and not just chek prefixes as LLSLURL::isSLURL() does.
- Used it in slurl DnD check in LLViewerWindow.
- LLUrlEntrySLURL regexp was changed not to pass non-valid SLURLS (such as one from the bug description).
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llslurl.h')
-rw-r--r-- | indra/newview/llslurl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llslurl.h b/indra/newview/llslurl.h index 6a695e84f3..a79a8fc97c 100644 --- a/indra/newview/llslurl.h +++ b/indra/newview/llslurl.h @@ -61,6 +61,11 @@ public: static bool isSLURL(const std::string& url); /** + * Returns true if url is proven valid by regexp check from LLUrlRegistry + */ + static bool isValidSLURL(const std::string& url); + + /** * Is this a special secondlife://app/ URL? */ static bool isSLURLCommand(const std::string& url); |