Fixed: Crash when suri is empty
This commit is contained in:
parent
d4372f4aa1
commit
d9f32be674
1 changed files with 1 additions and 1 deletions
|
@ -580,7 +580,7 @@ void CGroupHTML::addLink (uint element_number, uint /* attribute_number */, HTCh
|
|||
// in ah: command we don't respect the uri standard so the HTAnchor_address doesn't work correctly
|
||||
_Link.push_back (suri);
|
||||
}
|
||||
else if (_TrustedDomain && suri[0] == '#')
|
||||
else if (_TrustedDomain && suri.find('#') == 0)
|
||||
{
|
||||
// Direct url (hack for lua beginElement)
|
||||
_Link.push_back (suri.substr(1));
|
||||
|
|
Loading…
Reference in a new issue