diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-08-26 12:02:22 +0300 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-08-26 12:02:22 +0300 |
commit | 25547d320aaad298f6301e12ff9df3a8c37a8548 (patch) | |
tree | 2d5eab097c509be3bd77293aed94e9e24ca47365 /indra/llui/llurlentry.cpp | |
parent | e8adc1d008fbe704798f3b5820fca38ba9abeb48 (diff) |
MAINT-4210 FIXED Don't try to replace wiki-link with label if it's not correct(contains url in label part).
Diffstat (limited to 'indra/llui/llurlentry.cpp')
-rwxr-xr-x | indra/llui/llurlentry.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llui/llurlentry.cpp b/indra/llui/llurlentry.cpp index 6f3122e7a1..be583c83d8 100755 --- a/indra/llui/llurlentry.cpp +++ b/indra/llui/llurlentry.cpp @@ -178,6 +178,12 @@ bool LLUrlEntryBase::isLinkDisabled() const return globally_disabled; } +bool LLUrlEntryBase::isWikiLinkCorrect(std::string url) +{ + std::string label = getLabelFromWikiLink(url); + return (LLUrlRegistry::instance().hasUrl(label)) ? false : true; +} + static std::string getStringAfterToken(const std::string str, const std::string token) { size_t pos = str.find(token); |