MAINT-535 Wiki-style link markup hides potentially malicious secondlife: app URLs
Partial fix: disabled URLs in the 'label' part of Wiki-style link
parent
d71e3f950c
commit
ea14f690e2
|
|
@ -1067,7 +1067,8 @@ LLUrlEntrySLLabel::LLUrlEntrySLLabel()
|
|||
|
||||
std::string LLUrlEntrySLLabel::getLabel(const std::string &url, const LLUrlLabelCallback &cb)
|
||||
{
|
||||
return getLabelFromWikiLink(url);
|
||||
std::string label = getLabelFromWikiLink(url);
|
||||
return (!LLUrlRegistry::instance().hasUrl(label)) ? label : getUrl(url);
|
||||
}
|
||||
|
||||
std::string LLUrlEntrySLLabel::getUrl(const std::string &string) const
|
||||
|
|
|
|||
Loading…
Reference in New Issue